# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
685197 | alexdd | Costinland (info1cup19_costinland) | C++17 | 1 ms | 824 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.
#pragma GCC optimize("O3,unroll-loops")
#include<bits/stdc++.h>
using namespace std;
//ofstream fout("costin.out");
#define int long long
const int INF = 1000000007;
char mat[1000][1000];
int put(int a, int exp)
{
if(exp==0) return 1;
if(exp%2==0) return put(a*a,exp/2);
return put(a*a,exp/2)*a;
}
void afisare()
{
int unde=0;
for(int i=1;i<=500;i++)
{
for(int j=1;j<=500;j++)
{
if(mat[i][j]=='X')
unde=i;
}
}
unde++;
for(int i=1;i<=unde;i++)
{
mat[i][unde]='d';
mat[unde][i]='r';
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |