Submission #1039005

#TimeUsernameProblemLanguageResultExecution timeMemory
1039005UnforgettableplTable Tennis (JOI24_tabletennis)C++17
5 / 100
243 ms16536 KiB
#include <bits/stdc++.h> using namespace std; #define int long long void solve(){ int n,m; cin >> n >> m; cout << "Yes\n"; vector<vector<bool>> win(n+1,vector<bool>(n+1,true)); win[n][n-1-m]=false; for(int i=2;i<=n;i++){ for(int j=1;j<i;j++){ if(win[i][j])cout<<'1'; else cout<<'0'; } cout << '\n'; } } int32_t main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int q; cin >> q; while(q--)solve(); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...