結果

問題 No.3295 Buying Bottled Water
コンテスト
ユーザー OneStar
提出日時 2025-11-06 12:57:17
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 459 bytes
コンパイル時間 1,757 ms
コンパイル使用メモリ 194,744 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-11-06 12:57:20
合計ジャッジ時間 2,984 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define L(i, l, r) for(ll i = (l); i < (r); i++)
#define R(i, l, r) for(ll i = (l); i > (r); i--)
#define all(x) (x).begin(), (x).end()
#define sz(x) (ll)((x).size())
using ll = long long;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
using pl = pair<ll, ll>;

int main() {
  ll n;
  cin >> n;
  
  ll ans = 0;
  L(i, 0, n / 500 + 1){
    ans++;
    if(n - 500 < 100) break;
   }
   cout << ans <<endl;
}
0