結果

問題 No.552 十分簡単な星1の問題
コンテスト
ユーザー vjudge1
提出日時 2025-11-24 21:18:27
言語 Crystal
(1.22.0 + ACL)
コンパイル:
crystal build -Donline_judge -o a.out --release --no-debug _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 877µs
コード長 414 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 11,044 ms
コンパイル使用メモリ 333,816 KB
実行使用メモリ 9,852 KB
最終ジャッジ日時 2026-10-11 06:20:01
合計ジャッジ時間 12,402 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 49
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

require "big"
lib C
    fun getchar_unlocked : Int32
end
def read_word : String
    ans = [] of Char
    f = 1
    c = C.getchar_unlocked()
    while [9, 10, 11, 12, 13, 32].includes?(c)
        c = C.getchar_unlocked()
    end
    while ![-1, 9, 10, 11, 12, 13, 32].includes?(c)
        ans.push('\0' + c)
        c = C.getchar_unlocked()
    end
    return ans.join("")
end
puts(read_word.to_big_i * 10.to_big_i)
0