結果

問題 No.3295 Buying Bottled Water
ユーザー InTheBloom
提出日時 2025-10-05 13:34:13
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 1,252 ms
コンパイル使用メモリ 160,316 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-05 13:35:26
合計ジャッジ時間 1,888 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;

void main () {
    int N = readln.chomp.to!int;
    int ans = N / 500;
    N %= 500;
    if (100 <= N) {
        ans++;
    }
    writeln(ans);
}

void read (T...) (string S, ref T args) {
    import std.conv : to;
    import std.array : split;
    auto buf = S.split;
    foreach (i, ref arg; args) {
        arg = buf[i].to!(typeof(arg));
    }
}
0