結果

問題 No.601 Midpoint Erase
ユーザー DrDrpilotDrDrpilot
提出日時 2022-01-19 13:57:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 383 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 76,544 KB
最終ジャッジ日時 2024-05-02 19:45:49
合計ジャッジ時間 3,480 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,096 KB
testcase_01 AC 37 ms
52,736 KB
testcase_02 AC 35 ms
51,712 KB
testcase_03 AC 103 ms
76,160 KB
testcase_04 AC 109 ms
76,544 KB
testcase_05 AC 95 ms
76,160 KB
testcase_06 AC 84 ms
76,032 KB
testcase_07 AC 102 ms
75,904 KB
testcase_08 AC 103 ms
76,032 KB
testcase_09 AC 105 ms
76,288 KB
testcase_10 AC 81 ms
76,416 KB
testcase_11 AC 119 ms
76,160 KB
testcase_12 AC 100 ms
76,032 KB
testcase_13 AC 38 ms
52,224 KB
testcase_14 AC 37 ms
51,712 KB
testcase_15 AC 35 ms
52,096 KB
testcase_16 AC 34 ms
52,096 KB
testcase_17 AC 35 ms
51,840 KB
testcase_18 AC 35 ms
52,096 KB
testcase_19 AC 36 ms
52,096 KB
testcase_20 AC 36 ms
52,096 KB
testcase_21 AC 37 ms
52,096 KB
testcase_22 AC 37 ms
52,224 KB
testcase_23 AC 35 ms
51,840 KB
testcase_24 AC 36 ms
51,840 KB
testcase_25 AC 34 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
oddodd=0
oddeven=0
evenodd=0
eveneven=0
for _ in range(n):
    a,b=map(int,input().split())
    if a%2==0 and b%2==0:
        eveneven+=1
    elif a%2==0 and b%2==1:
        evenodd+=1
    elif a%2==1 and b%2==0:
        oddeven+=1
    else:
        oddodd+=1
goukei=eveneven//2+oddodd//2+evenodd//2+oddeven//2
if goukei%2==1:
    print('Alice')
else:
    print('Bob')
0