結果
問題 | No.250 atetubouのzetubou |
ユーザー | 👑 tatt61880 |
提出日時 | 2021-04-04 10:36:30 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
AC
|
実行時間 | 62 ms / 5,000 ms |
コード長 | 570 bytes |
コンパイル時間 | 2,061 ms |
コンパイル使用メモリ | 150,020 KB |
実行使用メモリ | 39,320 KB |
最終ジャッジ日時 | 2023-10-14 18:16:13 |
合計ジャッジ時間 | 5,333 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 53 ms
39,244 KB |
testcase_01 | AC | 48 ms
39,316 KB |
testcase_02 | AC | 59 ms
39,304 KB |
testcase_03 | AC | 62 ms
39,160 KB |
testcase_04 | AC | 58 ms
39,244 KB |
testcase_05 | AC | 61 ms
39,128 KB |
testcase_06 | AC | 56 ms
39,064 KB |
testcase_07 | AC | 50 ms
39,304 KB |
testcase_08 | AC | 59 ms
39,204 KB |
testcase_09 | AC | 55 ms
39,252 KB |
testcase_10 | AC | 57 ms
39,240 KB |
testcase_11 | AC | 52 ms
39,120 KB |
testcase_12 | AC | 57 ms
39,124 KB |
testcase_13 | AC | 53 ms
39,156 KB |
testcase_14 | AC | 46 ms
39,320 KB |
testcase_15 | AC | 57 ms
39,304 KB |
testcase_16 | AC | 61 ms
39,244 KB |
testcase_17 | AC | 61 ms
39,120 KB |
testcase_18 | AC | 62 ms
39,104 KB |
testcase_19 | AC | 61 ms
39,124 KB |
testcase_20 | AC | 44 ms
39,104 KB |
testcase_21 | AC | 44 ms
39,124 KB |
ソースコード
func main() const max: int :: 1000000000000001 var comb: [][]int :: #[3000][]int for n(1, 2999) do comb[n] :: #[n + 1]int do comb[n][0] :: 1 do comb[n][n] :: 1 for r(1, n - 1) do comb[n][r] :: comb[n - 1][r - 1] + comb[n - 1][r] if(comb[n][r] > max) do comb[n][r] :: max end if end for end for var q: int :: cui@inputInt() for(1, q) var d: int :: cui@inputInt() var x: int :: cui@inputInt() var t: int :: cui@inputInt() var ans: bool :: comb[x + d - 1][d - 1] <= t do cui@print((ans ?("AC", "ZETUBOU")) ~ "\n") end for end func