답안 #1009315

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1009315 2024-06-27T11:20:25 Z matere Costinland (info1cup19_costinland) C++14
10.9555 / 100
1 ms 348 KB
#include<bits/stdc++.h>
using namespace std;
long long k;
char a[50][50];
int main(){
    cin>>k;
    cout<<"49 49\n";
    for(int i=1;i<=49;i++){
        for(int j=1;j<=49;j++){
            a[i][j]='r';
        }
    }
    for(int i=1;i<49;i++) a[i][49]='d';
    a[49][49]='.';
    //
    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<=49;i++){
        for(int j=1;j<=49;j++){
            cout<<a[i][j];
        }
        cout<<endl;
    }
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 0 ms 348 KB Partially Correct! Your size: 49
2 Partially correct 0 ms 348 KB Partially Correct! Your size: 49
3 Partially correct 0 ms 348 KB Partially Correct! Your size: 49
4 Partially correct 0 ms 348 KB Partially Correct! Your size: 49
5 Partially correct 0 ms 348 KB Partially Correct! Your size: 49
6 Partially correct 0 ms 348 KB Partially Correct! Your size: 49
7 Partially correct 0 ms 348 KB Partially Correct! Your size: 49
8 Partially correct 0 ms 348 KB Partially Correct! Your size: 49
9 Partially correct 1 ms 348 KB Partially Correct! Your size: 49
# 결과 실행 시간 메모리 Grader output
1 Runtime error 0 ms 344 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -