結果
問題 | No.1454 ツブ消ししとるなEasy |
ユーザー |
![]() |
提出日時 | 2021-03-31 21:10:14 |
言語 | Crystal (1.14.0) |
結果 |
AC
|
実行時間 | 18 ms / 2,000 ms |
コード長 | 344 bytes |
コンパイル時間 | 14,996 ms |
コンパイル使用メモリ | 297,192 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-12-15 12:56:19 |
合計ジャッジ時間 | 13,761 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
lib Cfun strtoll(s : UInt8*, p : UInt8**, b : Int32) : Int64endclass Stringdef to_i64C.strtoll(self, nil, 10)endendn, m, x, y = read_line.split.map(&.to_i64)a = read_line.split.map(&.to_i64).select { |i| i > y }can = a.count { |i| i < x }if a.size - can <= mputs a.sort.reverse[0, m].sumelseputs "Handicapped"end