結果

問題 No.35 タイパー高橋
ユーザー Takeky0Takeky0
提出日時 2021-05-02 14:28:19
言語 Crystal
(1.11.2)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 187 bytes
コンパイル時間 17,432 ms
コンパイル使用メモリ 253,508 KB
実行使用メモリ 4,924 KB
最終ジャッジ日時 2023-09-28 04:50:34
合計ジャッジ時間 17,978 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
4,812 KB
testcase_01 AC 4 ms
4,880 KB
testcase_02 AC 3 ms
4,888 KB
testcase_03 AC 3 ms
4,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=read_line.to_i
collect=0
mistake=0
n.times{
    t,s=read_line.split
    t=12*t.to_i//1000
    s=s.size
    collect+=[t,s].min
    mistake+=[s-t,0].max
}
puts [collect,mistake].join(' ')
0