結果

問題 No.1032 数数え
ユーザー cielciel
提出日時 2020-05-06 22:06:53
言語 Ruby
(3.3.0)
結果
AC  
実行時間 480 ms / 2,000 ms
コード長 97 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 11,376 KB
実行使用メモリ 39,984 KB
最終ジャッジ日時 2023-09-16 07:34:40
合計ジャッジ時間 2,837 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,088 KB
testcase_01 AC 85 ms
15,332 KB
testcase_02 AC 82 ms
15,136 KB
testcase_03 AC 83 ms
15,096 KB
testcase_04 AC 82 ms
15,224 KB
testcase_05 AC 84 ms
15,228 KB
testcase_06 AC 81 ms
15,332 KB
testcase_07 AC 480 ms
39,984 KB
testcase_08 AC 82 ms
15,312 KB
testcase_09 AC 94 ms
15,696 KB
testcase_10 AC 84 ms
15,236 KB
testcase_11 AC 80 ms
15,160 KB
testcase_12 AC 398 ms
33,552 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n,m,*l=`dd`.split.map &:to_i
h=Hash.new 0
l.map{|e|h[e]+=1}
(1..m).each{|i|puts '%d %d'%[i,h[i]]}
0