結果

問題 No.118 門松列(2)
ユーザー gigurururugigurururu
提出日時 2015-01-07 00:17:02
言語 Ruby
(3.3.0)
結果
AC  
実行時間 243 ms / 5,000 ms
コード長 115 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 11,192 KB
実行使用メモリ 24,340 KB
最終ジャッジ日時 2023-08-26 22:57:51
合計ジャッジ時間 6,627 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
15,292 KB
testcase_01 AC 239 ms
24,340 KB
testcase_02 AC 243 ms
24,028 KB
testcase_03 AC 243 ms
23,948 KB
testcase_04 AC 242 ms
24,028 KB
testcase_05 AC 235 ms
24,148 KB
testcase_06 AC 71 ms
15,364 KB
testcase_07 AC 72 ms
15,076 KB
testcase_08 AC 73 ms
15,132 KB
testcase_09 AC 235 ms
22,916 KB
testcase_10 AC 200 ms
16,992 KB
testcase_11 AC 204 ms
17,820 KB
testcase_12 AC 206 ms
16,376 KB
testcase_13 AC 206 ms
15,992 KB
testcase_14 AC 237 ms
22,780 KB
testcase_15 AC 195 ms
15,500 KB
testcase_16 AC 212 ms
20,040 KB
testcase_17 AC 204 ms
15,828 KB
testcase_18 AC 211 ms
17,556 KB
testcase_19 AC 212 ms
19,492 KB
testcase_20 AC 210 ms
19,536 KB
testcase_21 AC 227 ms
21,680 KB
testcase_22 AC 198 ms
17,084 KB
testcase_23 AC 223 ms
20,560 KB
testcase_24 AC 222 ms
17,668 KB
testcase_25 AC 212 ms
19,316 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
a=gets.split.group_by{|i|i}
p a.keys.combination(3).inject(0){|s,r|s+r.inject(1){|t,i|t*a[i].size}}%1000000007
0