結果

問題 No.1229 ラグビーの得点パターン
ユーザー kotatsugamekotatsugame
提出日時 2020-09-18 22:05:49
言語 Ruby
(3.3.0)
結果
AC  
実行時間 270 ms / 2,000 ms
コード長 78 bytes
コンパイル時間 753 ms
コンパイル使用メモリ 11,376 KB
実行使用メモリ 15,416 KB
最終ジャッジ日時 2023-09-04 10:50:02
合計ジャッジ時間 6,845 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,268 KB
testcase_01 AC 82 ms
15,140 KB
testcase_02 AC 83 ms
15,068 KB
testcase_03 AC 270 ms
15,396 KB
testcase_04 AC 81 ms
15,144 KB
testcase_05 AC 81 ms
15,304 KB
testcase_06 AC 81 ms
15,088 KB
testcase_07 AC 81 ms
15,088 KB
testcase_08 AC 81 ms
15,164 KB
testcase_09 AC 82 ms
15,148 KB
testcase_10 AC 85 ms
15,088 KB
testcase_11 AC 88 ms
15,256 KB
testcase_12 AC 92 ms
15,416 KB
testcase_13 AC 95 ms
15,416 KB
testcase_14 AC 106 ms
15,260 KB
testcase_15 AC 107 ms
15,380 KB
testcase_16 AC 120 ms
15,288 KB
testcase_17 AC 121 ms
15,156 KB
testcase_18 AC 132 ms
15,140 KB
testcase_19 AC 145 ms
15,248 KB
testcase_20 AC 152 ms
15,268 KB
testcase_21 AC 158 ms
15,372 KB
testcase_22 AC 184 ms
15,176 KB
testcase_23 AC 190 ms
15,296 KB
testcase_24 AC 193 ms
15,188 KB
testcase_25 AC 212 ms
15,164 KB
testcase_26 AC 215 ms
15,212 KB
testcase_27 AC 222 ms
15,276 KB
testcase_28 AC 244 ms
15,260 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

p [*0..N=gets.to_i].repeated_permutation(3).count{|a,b,c|a>=b&&a*5+b*2+c*3==N}
0