# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
687211 | smartmonky | Costinland (info1cup19_costinland) | C++14 | 1 ms | 340 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 dp[6][6], vis[6][6], mx[6][6];
int k;
char a[6][6];
int n = 5;
main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cin >> k;
if(k <= 14)
cout <<"5 5" << endl;
else{
cout << "6 6" << endl;
n++;
}
for(int i = 1; i <= n; i++){
a[i][n] = 'd';
a[n][i] = 'r';
vis[n][i] = vis[i][n] = 1;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |