# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1110278 | 2024-11-09T04:19:43 Z | vjudge1 | Table Tennis (JOI24_tabletennis) | C++17 | 1 ms | 336 KB |
#include<bits/stdc++.h> using namespace std; int n,m; void sol(){ cin >>n>>m; cout <<"YES"<<'\n'; m++; for(int i=2;i<=n;i++){ if(m){ for(int j=1;j<i-1;j++){ cout <<1; } cout <<0; cout <<'\n'; m--; } else{ for(int j=1;j<i;j++){ cout <<1; } cout <<'\n'; } } } int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); if(fopen("c.INP","r")){ freopen("c.INP","r",stdin); freopen("c.OUT","w",stdout); } int q; cin >>q; while(q--){ sol(); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 336 KB | Token "YES" doesn't correspond to pattern "Yes|No" |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 336 KB | Token "YES" doesn't correspond to pattern "Yes|No" |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 336 KB | Token "YES" doesn't correspond to pattern "Yes|No" |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 336 KB | Token "YES" doesn't correspond to pattern "Yes|No" |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 336 KB | Token "YES" doesn't correspond to pattern "Yes|No" |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 336 KB | Token "YES" doesn't correspond to pattern "Yes|No" |
2 | Halted | 0 ms | 0 KB | - |