층간소음 #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main() { //freopen("input.txt", "rt", stdin); int n, m, a, i, cnt=0, max=-2147000000; scanf("%d %d", &n, &m); for(i=0; im) cnt++; else cnt=0; if(cnt>max) max=cnt; if(max==0) max=-1; } printf("%d", max); return 0; } 분노유발자 내가푼코드 앞에서부터 확인 이중 for문을 쓰므로 효율적이지 않은 것 같음 #include /* run ..
아나그램 #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int a[60], b[60]; int main() { //freopen("input.txt", "rt", stdin); char str[100]; int i; scanf("%s", &str); for(i=0; str[i]!='\0'; i++){ if(str[i]>=65 && str[i]=65 && str[i]
뒤집은 소수 #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ bool isPrime(int x){ bool flag=true; int i; if(x==1) { return false; } for(i=2; i0){ tmp=x%10; rev=rev*10+tmp; x=x/10; } return rev; } int main() { //freopen("input.txt", "rt", stdin); int n, i, num, tmp; scanf("%d", &n); for(i=0; i
숫자의 총개수 #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int main() { //freopen("input.txt", "rt", stdin); int n, sum=0, c=1, d=9, res=0; scanf("%d", &n); while(sum+d
자릿수의 합 #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int digit_sum(int x){ int tmp, sum=0; while(x>0){ tmp = x%10; sum += tmp; x = x/10; } return sum; } int main() { //freopen("input.txt", "rt", stdin); int n, num, i, sum, max=-2147000000, res; scanf("%d", &n); for(i=0; i max){ max = sum; res = num; } else if(su..
- Total
- Today
- Yesterday
- 배열
- 입출력장치
- 스텍
- 병행프로세스
- 퀵정렬
- 인접행렬
- C++
- 운영체제
- BFS
- client side rendering
- react
- 이진탐색
- 교착상태
- 세마포어
- 알고리즘
- 소프트웨어
- 동적프로그래밍
- server side rendering
- Java
- C
- 최단경로
- javascript
- dfs
- 클래스
- 인접리스트
- stackframe
- 구조체
- 자료구조
- 재귀함수
- Stack
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |