結果

問題 No.994 ばらばらコイン
ユーザー shamioshamio
提出日時 2020-06-02 16:58:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 297 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 27,776 KB
最終ジャッジ日時 2023-08-15 19:14:16
合計ジャッジ時間 4,221 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,916 KB
testcase_01 AC 16 ms
7,836 KB
testcase_02 AC 297 ms
27,716 KB
testcase_03 AC 294 ms
27,708 KB
testcase_04 AC 290 ms
27,588 KB
testcase_05 AC 146 ms
17,900 KB
testcase_06 AC 290 ms
27,776 KB
testcase_07 AC 294 ms
27,672 KB
testcase_08 AC 196 ms
21,524 KB
testcase_09 AC 270 ms
26,416 KB
testcase_10 AC 196 ms
21,684 KB
testcase_11 AC 223 ms
23,420 KB
testcase_12 AC 240 ms
24,700 KB
testcase_13 AC 15 ms
7,720 KB
testcase_14 AC 15 ms
7,812 KB
testcase_15 AC 15 ms
7,832 KB
testcase_16 AC 16 ms
7,800 KB
testcase_17 AC 16 ms
7,916 KB
testcase_18 AC 16 ms
7,804 KB
testcase_19 AC 16 ms
7,916 KB
testcase_20 AC 15 ms
7,752 KB
testcase_21 AC 15 ms
7,768 KB
testcase_22 AC 15 ms
7,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
ab = [list(map(int, input().split())) for _ in range(n - 1)]

if k <= n:
    ans = k - 1
else:
    ans = -1

print(ans)
0