답안 #339964

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
339964 2020-12-26T12:35:39 Z ArKCa Esej (COCI15_esej) C++17
80 / 80
13 ms 1408 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(b--){
		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);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 0 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 620 KB Output is correct
7 Correct 13 ms 1408 KB Output is correct
8 Correct 13 ms 1388 KB Output is correct
9 Correct 13 ms 1388 KB Output is correct
10 Correct 13 ms 1388 KB Output is correct