結果
| 問題 | No.690 E869120 and Constructing Array 4 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-25 00:54:40 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 489 bytes |
| 記録 | |
| コンパイル時間 | 391 ms |
| コンパイル使用メモリ | 75,464 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-25 00:54:48 |
| 合計ジャッジ時間 | 5,093 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 15 TLE * 1 |
ソースコード
#include <iostream>
#include <algorithm>
#include <cstdio>
using namespace std;
const int N = 16;
int k;
int main() {
// freopen("path.in", "r", stdin);
// freopen("path.out", "w", stdout);
scanf("%d", &k);
if (k <= 10000000) {
int n = k + 2, m = 2 * k;
cout << n << ' ' << m << endl;
for (int i = 2; i <= k + 1; ++i) cout << 1 << ' ' << i << endl;
for (int i = 2; i <= k + 1; ++i) cout << i << ' ' << n << endl;
}
return 0;
}