Submission #1009319

# Submission time Handle Problem Language Result Execution time Memory
1009319 2024-06-27T11:23:30 Z matere Costinland (info1cup19_costinland) C++14
10.5911 / 100
1 ms 444 KB
#include<bits/stdc++.h>
using namespace std;
long long k;
char a[65][65];
int main(){
    cin>>k;
    cout<<"64 64\n";
    for(int i=1;i<=64;i++){
        for(int j=1;j<=64;j++){
            a[i][j]='r';
        }
    }
    for(int i=1;i<64;i++) a[i][64]='d';
    a[64][64]='.';
    //
    for(int i=1;(1<<i)<=k;i++){
        a[i][i]='X';
        a[i][i+1]='d';
        if((1<<(i-1))&k) a[i][i+1]='X';
    }
    //
    for(int i=1;i<=64;i++){
        for(int j=1;j<=64;j++){
            cout<<a[i][j];
        }
        cout<<endl;
    }
}
# Verdict Execution time Memory Grader output
1 Partially correct 0 ms 344 KB Partially Correct! Your size: 64
2 Partially correct 0 ms 348 KB Partially Correct! Your size: 64
3 Partially correct 0 ms 348 KB Partially Correct! Your size: 64
4 Partially correct 1 ms 372 KB Partially Correct! Your size: 64
5 Partially correct 1 ms 348 KB Partially Correct! Your size: 64
6 Partially correct 1 ms 348 KB Partially Correct! Your size: 64
7 Partially correct 1 ms 444 KB Partially Correct! Your size: 64
8 Partially correct 0 ms 348 KB Partially Correct! Your size: 64
9 Partially correct 0 ms 348 KB Partially Correct! Your size: 64
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -