Submission #1009317

#TimeUsernameProblemLanguageResultExecution timeMemory
1009317matereCostinland (info1cup19_costinland)C++14
20 / 100
1 ms348 KiB
#include<bits/stdc++.h> using namespace std; long long k; char a[50][50]; int main(){ cin>>k; cout<<"5 5\n"; for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++){ a[i][j]='r'; } } for(int i=1;i<5;i++) a[i][5]='d'; a[5][5]='.'; // 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<=5;i++){ for(int j=1;j<=5;j++){ cout<<a[i][j]; } cout<<endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...