# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
595402 | 2022-07-13T17:20:31 Z | AdamGS | Coins (LMIO19_monetos) | C++17 | 8 ms | 540 KB |
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define rep(a, b) for(int a = 0; a < (b); ++a) #define st first #define nd second #define pb push_back #define all(a) a.begin(), a.end() const int LIM=307; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int t, n, k1, k2; cin >> t >> n >> k1 >> k2; rep(i, n) { rep(j, n) cout << (j>=n-i || j<n/2 && j==n-i-1 && i+j==n-1) << " "; cout << '\n'; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | K = 22 |
2 | Incorrect | 1 ms | 212 KB | K = 629 |
3 | Partially correct | 6 ms | 468 KB | K = 20155 |
4 | Partially correct | 6 ms | 440 KB | K = 23377 |
5 | Partially correct | 7 ms | 476 KB | K = 18576 |
6 | Partially correct | 6 ms | 468 KB | K = 22065 |
7 | Partially correct | 6 ms | 496 KB | K = 22427 |
8 | Incorrect | 8 ms | 508 KB | K = 22416 |
9 | Incorrect | 7 ms | 468 KB | K = 22102 |
10 | Partially correct | 6 ms | 540 KB | K = 22112 |