結果

問題 No.481 1から10
コンテスト
ユーザー vjudge1
提出日時 2025-06-13 17:23:45
言語 Crystal
(1.19.1)
コンパイル:
crystal build -Donline_judge -o a.out --release --no-debug _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 203µs
コード長 534 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 8,004 ms
コンパイル使用メモリ 332,728 KB
実行使用メモリ 9,404 KB
最終ジャッジ日時 2026-07-12 04:58:33
合計ジャッジ時間 9,253 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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
0