結果
| 問題 | No.1149 色塗りゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-07 22:18:01 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 558 bytes |
| 記録 | |
| コンパイル時間 | 591 ms |
| コンパイル使用メモリ | 114,420 KB |
| 実行使用メモリ | 56,820 KB |
| 平均クエリ数 | 0.02 |
| 最終ジャッジ日時 | 2026-06-12 03:10:32 |
| 合計ジャッジ時間 | 4,744 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 -- * 48 |
ソースコード
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <vector>
using namespace std;
int main() {
int n, t, k, x;
cin >> n;
if (n & 1) {
cout << n / 2 + 1 << " 1" << endl;
} else {
cout << n / 2 << " 2" << endl;
}
while (true) {
cin >> t;
if (t == 0) break;
cin >> k >> x;
if (k > n / 2 + 1) {
cout << k - (n / 2 + 1) << " " << k << endl;
} else {
cout << k + (n / 2 + 1) << " " << k << endl;
}
}
return 0;
}