Submission #339963

# Submission time Handle Problem Language Result Execution time Memory
339963 2020-12-26T12:34:33 Z ArKCa Esej (COCI15_esej) C++17
40 / 80
13 ms 1388 KB
#include<bits/stdc++.h>
#define N   200005
#define ll  long long 
#define int ll
#define N   200005

using namespace std;
string s="abcdefghij";
int a,b;
int32_t main(){
	// freopen("a.gir","r",stdin);
	// freopen("a.cik","w",stdout);

	scanf("%lld %lld",&a,&b);
	while(a--){
		cout<<s<<" ";
		next_permutation(s.begin(), s.end());
	}

}

Compilation message

esej.cpp: In function 'int32_t main()':
esej.cpp:14:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   14 |  scanf("%lld %lld",&a,&b);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 256 KB Output is correct
3 Incorrect 0 ms 364 KB Output isn't correct
4 Incorrect 0 ms 364 KB Output isn't correct
5 Correct 1 ms 364 KB Output is correct
6 Incorrect 2 ms 364 KB Output isn't correct
7 Incorrect 2 ms 384 KB Output isn't correct
8 Correct 11 ms 1260 KB Output is correct
9 Correct 13 ms 1388 KB Output is correct
10 Incorrect 1 ms 364 KB Output isn't correct