# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
685167 | alexdd | Costinland (info1cup19_costinland) | C++17 | 1 ms | 340 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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[51][51];
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 solve(int clin, int ccol, int k)
{
if(k==0)
return;
int x=clin,y=ccol;
for(int i=0;put(2,i)<=k;i++)
{
x++;
y++;
mat[clin+i][ccol+i]='X';
if(put(2,i+1)<=k)
{
mat[clin+i+1][ccol+i]='r';
mat[clin+i][ccol+i+1]='d';
}
else
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |