結果

問題 No.601 Midpoint Erase
ユーザー kryu_______2740kryu_______2740
提出日時 2018-02-18 15:06:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 711 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 10,952 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2023-09-06 18:21:13
合計ジャッジ時間 4,350 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
7,776 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 153 ms
7,812 KB
testcase_06 AC 97 ms
7,856 KB
testcase_07 AC 198 ms
7,784 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 58 ms
7,740 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 15 ms
7,752 KB
testcase_14 AC 15 ms
7,784 KB
testcase_15 WA -
testcase_16 AC 15 ms
7,740 KB
testcase_17 AC 14 ms
7,708 KB
testcase_18 WA -
testcase_19 AC 15 ms
7,772 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 15 ms
7,712 KB
testcase_23 AC 15 ms
7,760 KB
testcase_24 AC 14 ms
7,820 KB
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

for i in range(N):
    x_i = input()
    
    x_i = x_i.split(" ")
    intx_i =[int(x) for x in x_i]
    #print(intx_i)

even_even = 0
odd_even = 0
even_odd = 0
odd_odd = 0

for i in range(N):
    if( intx_i[0]%2 == 0 )and(intx_i[1]%2 == 0):
        even_even = even_even + 1
    elif( intx_i[0]%2 == 1 )and(intx_i[1]%2 == 0):
        odd_even = odd_even + 1
    elif( intx_i[0]%2 == 0 )and(intx_i[1]%2 == 1):
        even_odd = even_odd + 1
    elif( intx_i[0]%2 == 1 )and(intx_i[1]%2 == 1):
        odd_odd = odd_odd +1
    else:
        print("number is not int")

count = ((even_even//2)+(odd_even//2)+(even_odd//2)+(odd_odd//2))%2
if count==1:
    print("Alice")
else:
    print("Bob")


0