Submission #1009320

#TimeUsernameProblemLanguageResultExecution timeMemory
1009320matereCostinland (info1cup19_costinland)C++14
58.37 / 100
1 ms600 KiB
#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;(1ll<<i)<=k;i++){ a[i][i]='X'; a[i][i+1]='d'; if((1ll<<(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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...