Submission #16904
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | n= gets .chomp.to_i arr=[] Item=Struct. new (:name,:score) n.times{ l= gets .chomp.split( " " ) arr<<Item. new (l[0],l[1].to_i+l[2].to_i+l[3].to_i) } arr.sort!{|a,b| if a.score!=b.score then b.score <=> a.score else a.name <=> b.name end } arr.size.times{|e| print e+1, " " ,arr[e].name, " " ,arr[e].score, "\n" } |
ステータス
項目 | データ |
---|---|
問題 | 0054 - てすと |
ユーザー名 | sinapusu2002 |
投稿日時 | 2017-05-09 12:34:31 |
言語 | Ruby |
状態 | Accepted |
得点 | 2 |
ソースコード長 | 326 Byte |
最大実行時間 | 29 ms |
最大メモリ使用量 | 2264 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 2 / 2 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in1.txt | AC | 29 ms | 2264 KB |
1
|
in2.txt | AC | 13 ms | 2180 KB |
1
|
in3.txt | AC | 13 ms | 2224 KB |
1
|
in4.txt | AC | 15 ms | 2132 KB |
1
|
in5.txt | AC | 13 ms | 2168 KB |
1
|