結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-06-13 17:23:45 |
| 言語 | Crystal (1.14.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 534 bytes |
| コンパイル時間 | 12,268 ms |
| コンパイル使用メモリ | 307,444 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-06-13 17:24:00 |
| 合計ジャッジ時間 | 13,270 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
lib C
fun getchar_unlocked : Int32
fun isspace(c: Int32): Bool
end
fun read_int: Int32
ans = 0
f = 1
c = C.getchar_unlocked()
while C.isspace(c)
c = C.getchar_unlocked()
end
if c == 45
f = -1
c = C.getchar_unlocked()
end
while (48 .. 57).includes?(c)
ans = (ans << 1) + (ans << 3) + (c ^ 48)
c = C.getchar_unlocked()
end
return ans * f
end
puts 55 - read_int - read_int - read_int - read_int - read_int - read_int - read_int - read_int - read_int
vjudge1