Submission #687070

# Submission time Handle Problem Language Result Execution time Memory
687070 2023-01-26T05:51:32 Z smartmonky Costinland (info1cup19_costinland) C++14
11.6842 / 100
500 ms 49508 KB
#include <bits/stdc++.h>
 
#define ff first
#define ss second
#define pb push_back
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define int long long
 
using namespace std;
const int N = 1e6 + 1;
int a[3][N];
main(){
	ios_base::sync_with_stdio(0);
    cin.tie(0);
	int k;
	cin >> k;
	cout << 2 <<" " << k<< endl;
	for(int i = 1; i < k; i++){
		cout << "X";
	}
	cout << "d";
	cout << endl;
	for(int i = 1; i <= k - 1; i++){
		cout << "r";
	}
	cout << '.';
}

Compilation message

costinland.cpp:13:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   13 | main(){
      | ^~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Correct! Your size: 3
2 Correct 1 ms 328 KB Correct! Your size: 4
3 Correct 1 ms 212 KB Correct! Your size: 5
4 Partially correct 1 ms 212 KB Partially Correct! Your size: 6
5 Partially correct 1 ms 212 KB Partially Correct! Your size: 7
6 Partially correct 1 ms 212 KB Partially Correct! Your size: 8
7 Partially correct 1 ms 212 KB Partially Correct! Your size: 10
8 Partially correct 1 ms 212 KB Partially Correct! Your size: 14
9 Partially correct 1 ms 212 KB Partially Correct! Your size: 19
# Verdict Execution time Memory Grader output
1 Execution timed out 1076 ms 49508 KB Time limit exceeded
2 Halted 0 ms 0 KB -