# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
339957 | 2020-12-26T12:21:25 Z | AlperenT | Esej (COCI15_esej) | C++17 | 14 ms | 876 KB |
#include <bits/stdc++.h> using namespace std; long long a, b, cnt; int main(){ scanf("%lld %lld", &a, &b); for(int i = 0; i < 26; i++){ for(int j = 0; j < 26; j++){ for(int k = 0; k < 26; k++){ for(int l = 0; l < 26; l++){ printf("%c%c%c%c ", (char)('a' + i), (char)('a' + j), (char)('a' + k), (char)('a' + l)); cnt++; if(cnt == b) return 0; } } } } }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 364 KB | Output is correct |
2 | Correct | 1 ms | 364 KB | Output is correct |
3 | Correct | 0 ms | 364 KB | Output is correct |
4 | Correct | 1 ms | 364 KB | Output is correct |
5 | Correct | 1 ms | 364 KB | Output is correct |
6 | Correct | 4 ms | 492 KB | Output is correct |
7 | Correct | 14 ms | 876 KB | Output is correct |
8 | Correct | 14 ms | 876 KB | Output is correct |
9 | Correct | 14 ms | 876 KB | Output is correct |
10 | Correct | 14 ms | 876 KB | Output is correct |