Submission #339957

#TimeUsernameProblemLanguageResultExecution timeMemory
339957AlperenTEsej (COCI15_esej)C++17
80 / 80
14 ms876 KiB
#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 (stderr)

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 timeMemoryGrader output
Fetching results...