結果

問題 No.723 2つの数の和
ユーザー gemmarogemmaro
提出日時 2020-04-25 09:42:51
言語 Ruby
(3.3.0)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 77 bytes
コンパイル時間 373 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 24,960 KB
最終ジャッジ日時 2024-04-24 10:29:09
合計ジャッジ時間 4,174 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
12,288 KB
testcase_01 AC 81 ms
12,032 KB
testcase_02 AC 84 ms
12,288 KB
testcase_03 AC 132 ms
19,840 KB
testcase_04 AC 147 ms
21,376 KB
testcase_05 AC 141 ms
20,608 KB
testcase_06 AC 145 ms
20,864 KB
testcase_07 AC 105 ms
16,000 KB
testcase_08 AC 107 ms
17,664 KB
testcase_09 AC 141 ms
21,504 KB
testcase_10 AC 102 ms
15,744 KB
testcase_11 AC 85 ms
12,544 KB
testcase_12 AC 113 ms
18,048 KB
testcase_13 AC 143 ms
21,376 KB
testcase_14 AC 96 ms
14,464 KB
testcase_15 AC 107 ms
17,280 KB
testcase_16 AC 122 ms
19,200 KB
testcase_17 AC 140 ms
20,608 KB
testcase_18 AC 137 ms
19,456 KB
testcase_19 AC 140 ms
19,200 KB
testcase_20 AC 81 ms
12,160 KB
testcase_21 AC 78 ms
12,032 KB
testcase_22 AC 82 ms
12,160 KB
testcase_23 AC 147 ms
24,960 KB
testcase_24 AC 95 ms
14,848 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

_,X=gets.split
A=gets.split.map &:to_i
C=A.tally
p A.map{C[X.to_i-_1]||0}.sum
0