-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathesab.cpp
More file actions
63 lines (57 loc) · 948 Bytes
/
esab.cpp
File metadata and controls
63 lines (57 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include "bits/stdc++.h"
#define pb push_back
using ll = long long;
using namespace std;
#define endl "\n";
ll B;
void D(){
string s(B, '0');
if(B<=10)
for(int i =1;i<=B;i++){
cout<<i<<endl;
cout.flush();
char c;
cin>>c;
s[i-1] = c;
}
// if(B>10 && B<=20){
// for(int i =1;i<=10;i++){
// cout<<i<<endl;
// char c;
// cin>>c;
// s[i-1] = c;
// }
// for(int i = 11;i<=31;i++){
// cout<<i<<endl;
// char c;
// cin>>c;
// }
// int ct=11;
// for(int i =32;i<=41;i++){
// cout<<ct<<endl;
// char c;
// cin>>c;
// s[ct-1] = c;
// ct++;
// }
// }
cout<<s<<endl;
cout.flush();
char c ;
cin>>c;
return;
}
int main(int argc, char const *argv[])
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cout.precision(0);
cout<<fixed;
ll n , m,k ,pt(0),ct(0) ,x,y;
ll t =1;
cin>>t>>B;
while(t--){
D();
}
}