結果
問題 |
No.601 Midpoint Erase
|
ユーザー |
|
提出日時 | 2018-01-30 11:44:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 356 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-29 21:33:13 |
合計ジャッジ時間 | 4,272 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 14 WA * 9 |
ソースコード
n=int(input()) even=0#偶数 odd=0#奇数 mix=0 mis=0 for i in range(n): x,y=map(int,input().split()) if x%2==0 and y%2==0: even+=1 if x%2!=0 and y%2!=0: odd+=1 if x%2!=0 and y%2==0: mix+=1 if x%2==0 and y%2!=0: mis+=1 if (even/2+odd//2+mis//2+mix//2)%2==0: print("Bob") else: print("Alice")