結果
| 問題 | No.3295 Buying Bottled Water | 
| コンテスト | |
| ユーザー |  vjudge1 | 
| 提出日時 | 2025-10-27 19:24:55 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 5 ms / 2,000 ms | 
| コード長 | 267 bytes | 
| コンパイル時間 | 623 ms | 
| コンパイル使用メモリ | 65,168 KB | 
| 実行使用メモリ | 7,716 KB | 
| 最終ジャッジ日時 | 2025-10-27 19:24:57 | 
| 合計ジャッジ時間 | 1,689 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 19 | 
ソースコード
#include <iostream>
#include <cmath> // untuk ceil()
using namespace std;
int main() {
    long long N;
    cin >> N;
    if (N < 100) {
        cout << 0;
    } else {
        long long botol = ceil((N - 99) / 500.0);
        cout << botol;
    }
    return 0;
}
            
            
            
        