結果

問題 No.601 Midpoint Erase
ユーザー DexctersuDexctersu
提出日時 2018-01-30 11:44:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 356 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-08-28 16:37:17
合計ジャッジ時間 3,289 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,784 KB
testcase_01 AC 15 ms
7,916 KB
testcase_02 AC 15 ms
7,864 KB
testcase_03 AC 194 ms
7,800 KB
testcase_04 WA -
testcase_05 AC 158 ms
7,964 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 212 ms
7,924 KB
testcase_10 AC 58 ms
8,000 KB
testcase_11 AC 291 ms
8,004 KB
testcase_12 WA -
testcase_13 AC 15 ms
7,860 KB
testcase_14 WA -
testcase_15 AC 15 ms
7,924 KB
testcase_16 AC 16 ms
7,796 KB
testcase_17 AC 15 ms
7,864 KB
testcase_18 AC 16 ms
7,908 KB
testcase_19 AC 16 ms
7,900 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 15 ms
7,788 KB
testcase_25 AC 15 ms
7,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
    
0