結果
| 問題 |
No.1149 色塗りゲーム
|
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-08-07 21:27:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 372 bytes |
| コンパイル時間 | 269 ms |
| コンパイル使用メモリ | 82,452 KB |
| 実行使用メモリ | 71,552 KB |
| 平均クエリ数 | 15.68 |
| 最終ジャッジ日時 | 2024-07-17 04:12:47 |
| 合計ジャッジ時間 | 8,527 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 WA * 24 |
ソースコード
import sys
N=int(input())
X=[0]*(N+1)
if N%2:
C=(N+1)//2
print(1,C,flush=True)
Y=N-1
else:
C=N//2
print(2,C,flush=True)
Y=N-2
while Y:
T=int(input())
if T==0 or T==1:
sys.exit()
elif T==2:
_=input()
sys.exit()
k,x=map(int,input().split())
if x<C:
print(k,x+C)
else:
print(k,x-C)
Kazun