Submission #1049358

#TimeUsernameProblemLanguageResultExecution timeMemory
1049358vjudge1Make them Meet (EGOI24_makethemmeet)C++17
0 / 100
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; #define ar array #define int long long #define ld long double #pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt") const int N = 200; const int X = N * N; const int K = 500; const int MOD = 1e9 + 7; const int LOG = 21; const int INF = 1e17; signed main(){ios::sync_with_stdio(false);cin.tie(0); int n; cin>>n; cout<<n - 1<<endl; for(int i = 0;i + 1< n;i++){ for(int j = 0;j < n;j++){ if(j == i + 1)cout<< j - 1<<" "; else cout<<j<<" "; } cout<<endl; } }
#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...