結果

問題 No.994 ばらばらコイン
ユーザー pluto77pluto77
提出日時 2020-02-22 21:59:57
言語 Python2
(2.7.18)
結果
AC  
実行時間 290 ms / 2,000 ms
コード長 154 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 23,040 KB
最終ジャッジ日時 2024-04-18 03:05:04
合計ジャッジ時間 4,015 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,400 KB
testcase_01 AC 10 ms
6,272 KB
testcase_02 AC 290 ms
22,912 KB
testcase_03 AC 276 ms
22,912 KB
testcase_04 AC 283 ms
22,912 KB
testcase_05 AC 144 ms
14,464 KB
testcase_06 AC 283 ms
23,040 KB
testcase_07 AC 275 ms
23,040 KB
testcase_08 AC 192 ms
17,664 KB
testcase_09 AC 271 ms
21,760 KB
testcase_10 AC 190 ms
17,664 KB
testcase_11 AC 214 ms
19,200 KB
testcase_12 AC 226 ms
20,352 KB
testcase_13 AC 10 ms
6,272 KB
testcase_14 AC 11 ms
6,272 KB
testcase_15 AC 10 ms
6,272 KB
testcase_16 AC 9 ms
6,144 KB
testcase_17 AC 9 ms
6,144 KB
testcase_18 AC 11 ms
6,272 KB
testcase_19 AC 9 ms
6,144 KB
testcase_20 AC 11 ms
6,400 KB
testcase_21 AC 11 ms
6,144 KB
testcase_22 AC 11 ms
6,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki994
n,k=map(int,raw_input().split())
l=[]
for i in range(n-1):
 a,b=map(int,raw_input().split())
 l.append((a,b))
if k>n:
 print -1
else:
 print k-1
0