Submission #339957

# Submission time Handle Problem Language Result Execution time Memory
339957 2020-12-26T12:21:25 Z AlperenT Esej (COCI15_esej) C++17
80 / 80
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

esej.cpp: In function 'int main()':
esej.cpp:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf("%lld %lld", &a, &b);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory 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