Submission #81636

#TimeUsernameProblemLanguageResultExecution timeMemory
81636xiaowuc1Esej (COCI15_esej)C++14
80 / 80
125 ms2164 KiB
#include <bits/stdc++.h> /* unsigned seed1 = std::chrono::system_clock::now().time_since_epoch().count(); mt19937 g1.seed(seed1); ios_base::sync_with_stdio(false); cin.tie(NULL); */ using namespace std; const double PI = 2 * acos(0); typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> pii; typedef pair<int, ll> pill; typedef pair<ll, ll> pll; typedef long double ld; typedef vector<vector<ll>> matrix; int main() { int a, b; scanf("%d%d", &a, &b); mt19937 g1; for(int x = 0; x < b; x++) { for(int i = 0; i < 15; i++) { int v = g1(); v = abs(v)%26; printf("%c", 'a' + v); } if(x == b-1) printf("\n"); else printf(" "); } }

Compilation message (stderr)

esej.cpp: In function 'int main()':
esej.cpp:24:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d", &a, &b);
   ~~~~~^~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...