結果
| 問題 |
No.2521 Don't be Same
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-27 21:45:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 722 bytes |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 82,028 KB |
| 実行使用メモリ | 84,388 KB |
| 平均クエリ数 | 2.00 |
| 最終ジャッジ日時 | 2024-09-25 13:51:19 |
| 合計ジャッジ時間 | 5,430 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | AC * 10 RE * 17 |
ソースコード
X,Y=map(int,input().split())
if abs(X-Y)==1 and min(x,y)%2==1:
print("Second",flush=True)
t,*s=input().split()
if s[0]=="1":
X-=int(s[1])
else:
Y-=int(s[1])
else:
print("First",flush=True)
while True:
if X==Y:
print("B",flush=True)
break
if X==0:
print("A",2,Y,flush=True)
break
if Y==0:
print("A",1,X,flush=True)
break
if X%2==0:
print("A",2,Y-(X-1),flush=True)
elif Y%2==0:
print("A",1,X-(Y-1),flush=True)
elif X<Y:
print("A",2,Y-X-1,flush=True)
else:
print("A",1,X-Y-1,flush=True)
t,*s=input().split()
if s[0]=="1":
X-=int(s[1])
else:
Y-=int(s[1])