結果

問題 No.977 アリス仕掛けの摩天楼
ユーザー r_ishidar_ishida
提出日時 2020-02-02 21:29:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 303 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 11,920 KB
実行使用メモリ 16,892 KB
最終ジャッジ日時 2023-10-19 01:28:10
合計ジャッジ時間 11,281 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
14,492 KB
testcase_01 AC 29 ms
10,108 KB
testcase_02 AC 29 ms
10,108 KB
testcase_03 AC 29 ms
10,108 KB
testcase_04 AC 30 ms
10,108 KB
testcase_05 AC 30 ms
10,108 KB
testcase_06 AC 30 ms
10,108 KB
testcase_07 AC 30 ms
10,108 KB
testcase_08 AC 31 ms
10,108 KB
testcase_09 AC 32 ms
10,108 KB
testcase_10 WA -
testcase_11 AC 30 ms
10,108 KB
testcase_12 AC 29 ms
10,108 KB
testcase_13 TLE -
testcase_14 AC 59 ms
10,912 KB
testcase_15 AC 60 ms
10,912 KB
testcase_16 TLE -
testcase_17 AC 1,141 ms
10,852 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = []
y = []
for _ in range(n-1):
    a,b = map(int,input().split())
    x.append(a)
    y.append(b)
flag = 0
for i in range(n):
    if x.count(i) > 0 or y.count(i) > 0:
        continue
    else:
        flag = 1
        break
if flag == 1:
    print('Alice')
else:
    print('Bob')

0