結果
問題 | No.115 遠足のおやつ |
ユーザー | roaris |
提出日時 | 2019-07-31 19:01:12 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 10,560 KB |
実行使用メモリ | 12,592 KB |
最終ジャッジ日時 | 2023-09-18 16:34:30 |
合計ジャッジ時間 | 8,566 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
8,196 KB |
testcase_01 | AC | 16 ms
8,160 KB |
testcase_02 | AC | 17 ms
8,084 KB |
testcase_03 | AC | 16 ms
8,276 KB |
testcase_04 | AC | 663 ms
8,168 KB |
testcase_05 | AC | 16 ms
8,116 KB |
testcase_06 | AC | 17 ms
8,104 KB |
testcase_07 | AC | 16 ms
8,180 KB |
testcase_08 | AC | 17 ms
8,084 KB |
testcase_09 | AC | 16 ms
8,120 KB |
testcase_10 | AC | 17 ms
8,036 KB |
testcase_11 | AC | 16 ms
8,088 KB |
testcase_12 | AC | 16 ms
8,260 KB |
testcase_13 | AC | 16 ms
8,080 KB |
testcase_14 | AC | 17 ms
8,168 KB |
testcase_15 | AC | 289 ms
8,168 KB |
testcase_16 | AC | 49 ms
8,104 KB |
testcase_17 | AC | 16 ms
8,088 KB |
testcase_18 | TLE | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
testcase_39 | -- | - |
testcase_40 | -- | - |
testcase_41 | -- | - |
testcase_42 | -- | - |
ソースコード
from itertools import combinations N, D, K = map(int, input().split()) l = [i for i in range(1, N+1)] for c in combinations(l, K): if sum(c) == D: for c_i in c[:-1]: print(c_i, end=' ') print(c[-1]) break else: print(-1)