結果
問題 | No.115 遠足のおやつ |
ユーザー | lllllll88938494 |
提出日時 | 2022-03-15 12:16:43 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 400 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 81,800 KB |
実行使用メモリ | 79,368 KB |
最終ジャッジ日時 | 2023-10-22 02:39:09 |
合計ジャッジ時間 | 9,188 ms |
ジャッジサーバーID (参考情報) |
judge9 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 38 ms
53,388 KB |
testcase_01 | AC | 38 ms
53,388 KB |
testcase_02 | WA | - |
testcase_03 | AC | 38 ms
53,388 KB |
testcase_04 | WA | - |
testcase_05 | AC | 39 ms
53,388 KB |
testcase_06 | AC | 38 ms
53,388 KB |
testcase_07 | WA | - |
testcase_08 | AC | 38 ms
53,388 KB |
testcase_09 | AC | 38 ms
53,388 KB |
testcase_10 | AC | 38 ms
53,388 KB |
testcase_11 | AC | 39 ms
53,388 KB |
testcase_12 | AC | 38 ms
53,388 KB |
testcase_13 | AC | 38 ms
53,388 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 252 ms
76,556 KB |
testcase_19 | AC | 39 ms
53,388 KB |
testcase_20 | WA | - |
testcase_21 | AC | 38 ms
53,388 KB |
testcase_22 | WA | - |
testcase_23 | AC | 38 ms
53,388 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | AC | 38 ms
53,388 KB |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | AC | 38 ms
53,388 KB |
testcase_40 | AC | 37 ms
53,388 KB |
testcase_41 | AC | 38 ms
53,388 KB |
testcase_42 | WA | - |
ソースコード
n,d,k=map(int,input().split()) def cal(x,cnt,total): if cnt < k-1: if (d-total)//(k-cnt) >= n: return if cnt == k: if total == d: print(*x) exit() return for i in range(x[-1]+1,n+1): if total + i > n: continue cal(x+[i],cnt+1,total+i) for i in range(1,n+1): cal([i],1,i) print(-1)