diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..baa35b6 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. + // 기존 특성에 대한 설명을 보려면 가리킵니다. + // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. + "version": "0.2.0", + "configurations": [ + { + "name": "(lldb) Launch", + "type": "cppdbg", + "request": "launch", + "program": "${fileDirname}/${fileBasenameNoExtension}", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": true, + "MIMode": "lldb" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..691a8f6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "C_Cpp.errorSquiggles": "Disabled" +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..231336f --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,93 @@ +{ + "version": "2.0.0", + "runner": "terminal", + "type": "shell", + "echoCommand": true, + "presentation" : { "reveal": "always" }, + "tasks": [ + //C++ 컴파일 + { + "label": "save and compile for C++", + "command": "g++", + "args": [ + "${file}", + "-std=c++11", + "-o", + "${fileDirname}/${fileBasenameNoExtension}" + ], + "group": "build", + + //컴파일시 에러를 편집기에 반영 + //참고: https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher + + "problemMatcher": { + "fileLocation": [ + "relative", + "${workspaceRoot}" + ], + "pattern": { + // The regular expression. + //Example to match: helloWorld.c:5:3: warning: implicit declaration of function 'prinft' + "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning error):\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + } + }, + //C 컴파일 + { + "label": "save and compile for C", + "command": "gcc", + "args": [ + "${file}", + "-o", + "${fileDirname}/${fileBasenameNoExtension}" + ], + "group": "build", + + //컴파일시 에러를 편집기에 반영 + //참고: https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher + + "problemMatcher": { + "fileLocation": [ + "relative", + "${workspaceRoot}" + ], + "pattern": { + // The regular expression. + //Example to match: helloWorld.c:5:3: warning: implicit declaration of function 'prinft' + "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning error):\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + } + }, + // 바이너리 실행(Ubuntu) + + { + + "label": "execute", + + "command": "cd ${fileDirname} && ./${fileBasenameNoExtension}", + + "group": "test" + + } + // // 바이너리 실행(Windows) + // { + // "label": "execute", + // "command": "cmd", + // "group": "test", + // "args": [ + // "/C", "${fileDirname}\\${fileBasenameNoExtension}" + // ] + + // } + ] +} \ No newline at end of file diff --git a/backjoon/190705/b_10171 b/backjoon/190705/b_10171 new file mode 100755 index 0000000..8e18466 Binary files /dev/null and b/backjoon/190705/b_10171 differ diff --git a/backjoon/190705/b_10171.cpp b/backjoon/190705/b_10171.cpp new file mode 100644 index 0000000..5e09375 --- /dev/null +++ b/backjoon/190705/b_10171.cpp @@ -0,0 +1,10 @@ +#include + +int main(void){ + std::cout << "\\ /\\ \n"; + std::cout << " ) ( \')\n"; + std::cout << "( / )\n"; + std::cout << " \\(__)|\n"; + + return 0; +} \ No newline at end of file diff --git a/backjoon/190705/b_10869 b/backjoon/190705/b_10869 new file mode 100755 index 0000000..fa44735 Binary files /dev/null and b/backjoon/190705/b_10869 differ diff --git a/backjoon/190705/b_10869.cpp b/backjoon/190705/b_10869.cpp new file mode 100644 index 0000000..17d14ab --- /dev/null +++ b/backjoon/190705/b_10869.cpp @@ -0,0 +1,12 @@ +#include + +int main(void){ + int num1=0; + int num2=0; + std::cin >> num1; + std::cin >> num2; + + std::cout << num1 + num2 << "\n" << num1 - num2 << "\n" << num1*num2 << "\n" << num1/num2 << "\n" << num1%num2; + + return 0; +} \ No newline at end of file diff --git a/backjoon/190705/b_10952 b/backjoon/190705/b_10952 new file mode 100755 index 0000000..0e348b4 Binary files /dev/null and b/backjoon/190705/b_10952 differ diff --git a/backjoon/190705/b_10952.cpp b/backjoon/190705/b_10952.cpp new file mode 100644 index 0000000..af2bb7b --- /dev/null +++ b/backjoon/190705/b_10952.cpp @@ -0,0 +1,13 @@ +#include + +int main(void){ + int num1, num2; + + while(std::cin >> num1 >> num2){ + if(num1 == 0 && num2 == 0) + break; + std::cout << num1+num2 <<"\n"; + } + + return 0; +} \ No newline at end of file diff --git a/backjoon/190705/b_2439 b/backjoon/190705/b_2439 new file mode 100755 index 0000000..7945ffc Binary files /dev/null and b/backjoon/190705/b_2439 differ diff --git a/backjoon/190705/b_2439.cpp b/backjoon/190705/b_2439.cpp new file mode 100644 index 0000000..69936de --- /dev/null +++ b/backjoon/190705/b_2439.cpp @@ -0,0 +1,15 @@ +#include + +int main(void){ + int star=0; + std::cin >> star; + + for(int i=1; i <= star; i++){ + for(int j=0; j< star-i; j++) + std::cout <<" "; + for(int j=0; j + +int main(void){ + int n=0; + std::cin >> n; + + for(int i=1;i<=9;i++){ + std::cout << n << " * " << i << " = " << n*i << "\n"; + } + + return 0; +} \ No newline at end of file diff --git a/backjoon/190705/b_9498 b/backjoon/190705/b_9498 new file mode 100755 index 0000000..d1131dd Binary files /dev/null and b/backjoon/190705/b_9498 differ diff --git a/backjoon/190705/b_9498.cpp b/backjoon/190705/b_9498.cpp new file mode 100644 index 0000000..1f05713 --- /dev/null +++ b/backjoon/190705/b_9498.cpp @@ -0,0 +1,20 @@ +#include + +int main(void){ + int score=0; + std::cin >> score; + + if(score >= 90) + std::cout << "A"; + else if(score >= 80) + std::cout << "B"; + else if(score >= 70) + std::cout << "C"; + else if(score >= 60) + std::cout << "D"; + else + std::cout << "F"; + + + return 0; +} \ No newline at end of file diff --git a/backjoon/test.cpp b/backjoon/test.cpp new file mode 100644 index 0000000..ce21814 --- /dev/null +++ b/backjoon/test.cpp @@ -0,0 +1,9 @@ +#include +using namespace std; + +int main(void) +{ + cout << "Hello World" << endl; + + return 0; +}