Submission #219399

# Submission time Handle Problem Language Result Execution time Memory
219399 2020-04-05T08:49:21 Z Vimmer Konstrukcija (COCI20_konstrukcija) C++14
15 / 110
6 ms 384 KB
#include <bits/stdc++.h>

//#pragma GCC optimize("unroll-loops")
//#pragma GCC optimize("-O3")
//#pragma GCC optimize("Ofast")
//#pragma GCC optimize("fast-math")
//#pragma GCC optimize("no-stack-protector")

#define F first
#define S second
#define sz(x) ll(x.size())
#define pb push_back
#define N 75005
#define M ll(1e9 + 7)


using namespace std;

typedef long double ld;
typedef long long ll;
typedef short int si;






int main()
{
    ios_base::sync_with_stdio(0); istream::sync_with_stdio(0); cin.tie(0); cout.tie(0);

    int k;

    cin >> k;

    k++;

    cout << 2 + k << " " << k * 2 << endl;

    for (int i = 1; i <= k; i++) cout << 1 << " " << i + 1 << endl;

    for (int i = 1; i <= k; i++) cout << i + 1 << " " <<  2 + k << endl;
}
# Verdict Execution time Memory Grader output
1 Correct 6 ms 304 KB Correct.
2 Correct 5 ms 384 KB Correct.
3 Correct 5 ms 384 KB Correct.
4 Correct 5 ms 384 KB Correct.
5 Correct 6 ms 384 KB Correct.
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 384 KB Integer parameter [name=N] equals to -33, violates the range [1, 1000]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 304 KB Correct.
2 Correct 5 ms 384 KB Correct.
3 Correct 5 ms 384 KB Correct.
4 Correct 5 ms 384 KB Correct.
5 Correct 6 ms 384 KB Correct.
6 Incorrect 4 ms 384 KB Integer parameter [name=N] equals to -33, violates the range [1, 1000]
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 304 KB Correct.
2 Correct 5 ms 384 KB Correct.
3 Correct 5 ms 384 KB Correct.
4 Correct 5 ms 384 KB Correct.
5 Correct 6 ms 384 KB Correct.
6 Incorrect 4 ms 384 KB Integer parameter [name=N] equals to -33, violates the range [1, 1000]
7 Halted 0 ms 0 KB -