Skip to content

Commit

Permalink
Create adaking.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sans242 authored Oct 22, 2020
1 parent ffe5881 commit c025bc2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions adaking.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include <iostream>
using namespace std;

int main() {
int t,k;

cin>>t;

while(t--){
cin>>k;
for(int i=1;i<=8;i++){
for(int j=1;j<=8;j++){

if(i==1&&j==1){
cout<<"O";
}

else if(k<=0){
cout<<"X";
}

else {
cout<<".";
}
k--;
}
cout<<"\n";
}
cout<<"\n";
}

return 0;
}

0 comments on commit c025bc2

Please sign in to comment.