結果

問題 No.1229 ラグビーの得点パターン
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2021-05-17 04:05:06
言語 Ruby
(3.3.0)
結果
AC  
実行時間 264 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 19,200 KB
最終ジャッジ日時 2024-04-15 17:12:04
合計ジャッジ時間 5,539 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
12,288 KB
testcase_01 AC 96 ms
12,160 KB
testcase_02 AC 98 ms
12,160 KB
testcase_03 AC 264 ms
19,200 KB
testcase_04 AC 95 ms
12,160 KB
testcase_05 AC 94 ms
12,160 KB
testcase_06 AC 99 ms
12,288 KB
testcase_07 AC 95 ms
12,160 KB
testcase_08 AC 94 ms
12,160 KB
testcase_09 AC 92 ms
12,160 KB
testcase_10 AC 95 ms
12,288 KB
testcase_11 AC 103 ms
12,416 KB
testcase_12 AC 105 ms
12,416 KB
testcase_13 AC 106 ms
12,544 KB
testcase_14 AC 114 ms
12,672 KB
testcase_15 AC 118 ms
12,800 KB
testcase_16 AC 127 ms
13,312 KB
testcase_17 AC 138 ms
13,952 KB
testcase_18 AC 137 ms
14,080 KB
testcase_19 AC 163 ms
14,592 KB
testcase_20 AC 163 ms
14,848 KB
testcase_21 AC 171 ms
14,976 KB
testcase_22 AC 190 ms
15,360 KB
testcase_23 AC 185 ms
15,360 KB
testcase_24 AC 191 ms
16,896 KB
testcase_25 AC 209 ms
17,664 KB
testcase_26 AC 219 ms
18,176 KB
testcase_27 AC 218 ms
18,432 KB
testcase_28 AC 240 ms
18,816 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

j=gets.to_i
p (0..j).flat_map {|t| (0..t).flat_map {|g| (0..j).map{|p| [t*5, g*2, p*3].sum }}}.count(j)
0