본문 바로가기

C++6

[VSC] C,C++ task.json 설정방법 (무한 running task), 컴파일 실행 동시에 하기 빠르게 하겠습니다. c, c++ task.json 인터넷대로 했더니, 실행창이 계속 돌기만 하고 실행이 안되는 경우가 있습니다. 이걸 제거하겠습니다. 아주 짜증이 납니다. 그냥 복붙만 다 했는지 하나도 안돼서 결국 직접 했습니다. ​ task.json (복붙 가능) { "version": "2.0.0", "runner": "terminal", "type": "shell", "echoCommand": true, "presentation": { "reveal": "always" }, "tasks": [ //C++ 컴파일 { "label": "C++ compile & execute", "command": "g++", "args": [ "-g", "${file}", "-o", "${fileDirname}/${f.. 2021. 8. 2.
[SWEA] 1954. 달팽이 숫자 https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=2&contestProbId=AV5PobmqAPoDFAUq&categoryId=AV5PobmqAPoDFAUq&categoryType=CODE&problemTitle=&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=2&pageSize=10&pageIndex=2 SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com #include #include #include #include typedef long long ll; using name.. 2021. 2. 2.
[SWEA] 1288. 새로운 불면증 치료법(비트마스크) https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV18_yw6I9MCFAZN SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com #include #include #include #include #include typedef long long ll; using namespace std; int main(void) { // 0 ~9 까지니까 1023이면 될듯. int size,n; int result,temp,digit; int mul; scanf("%d",&size); for(int i = 0; i < size; i++) { .. 2021. 2. 1.
[SWEA] 1979 어디에 단어가 들어갈 수 있을까 https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5PuPq6AaQDFAUq SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com #include #include typedef long long ll; using namespace std; int main() { int board[15][15]; int flag,flag2; int result; int size; int N,K; // N = Board, K는 단어 길이 scanf("%d",&size); for(int i = 0; i < size; i++){ scanf("%d %.. 2021. 1. 28.
[SWEA] 2005 파스칼의 삼각형 https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5P0-h6Ak4DFAUq SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com #include #include typedef long long ll; using namespace std; int main() { int arr[12] = {0,}; arr[0] = 1, arr[1] = 1; int size,num; scanf("%d",&size); for(int i = 0; i < size; i++) { scanf("%d",&num); printf("#%d\n",i+1); fo.. 2021. 1. 25.
[SWEA] 2056 연월일달력(야비한수법) #include using namespace std; int main() { int size,y,m,d; int month[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; scanf("%d",&size); for(int i = 0; i = 1 && m = 1 && d 2021. 1. 22.
728x90