結果

問題 No.601 Midpoint Erase
ユーザー DrDrpilotDrDrpilot
提出日時 2022-01-19 13:57:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 148 ms / 2,000 ms
コード長 383 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 77,516 KB
最終ジャッジ日時 2023-08-15 07:55:35
合計ジャッジ時間 4,843 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,284 KB
testcase_01 AC 72 ms
71,360 KB
testcase_02 AC 76 ms
71,344 KB
testcase_03 AC 130 ms
77,440 KB
testcase_04 AC 133 ms
77,364 KB
testcase_05 AC 123 ms
77,392 KB
testcase_06 AC 113 ms
77,516 KB
testcase_07 AC 132 ms
77,484 KB
testcase_08 AC 127 ms
77,168 KB
testcase_09 AC 133 ms
77,320 KB
testcase_10 AC 106 ms
77,364 KB
testcase_11 AC 148 ms
77,360 KB
testcase_12 AC 121 ms
77,164 KB
testcase_13 AC 71 ms
71,568 KB
testcase_14 AC 71 ms
71,548 KB
testcase_15 AC 71 ms
71,172 KB
testcase_16 AC 71 ms
71,392 KB
testcase_17 AC 72 ms
71,360 KB
testcase_18 AC 73 ms
71,468 KB
testcase_19 AC 72 ms
71,440 KB
testcase_20 AC 72 ms
71,360 KB
testcase_21 AC 71 ms
71,500 KB
testcase_22 AC 75 ms
71,280 KB
testcase_23 AC 71 ms
71,356 KB
testcase_24 AC 72 ms
71,368 KB
testcase_25 AC 73 ms
71,364 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