結果

問題 No.3678 しゃべりすぎた男
コンテスト
ユーザー よには
提出日時 2026-07-11 13:04:42
言語 C++23
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 773 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 10,541 ms
コンパイル使用メモリ 409,164 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2026-09-05 12:38:26
合計ジャッジ時間 7,556 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 21 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#if __has_include(<yoniha/all.h>)
#include <yoniha/all.h>
using namespace atcoder;
#else
#include <bits/stdc++.h>
#if __has_include(<atcoder/all>)
#include <atcoder/all>
using namespace atcoder;
#endif
#endif
using namespace std;

#define int long long
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for(int i = (int)((n) - 1); i >= 0; i--)
template <typename T> bool chmax(T &a,const T &b){if(a<b){a=b;return true;}return false;}
template <typename T> bool chmin(T &a,const T &b){if(a>b){a=b;return true;}return false;}

// using mint = modint;

signed main(){
  vector<int> t(7); for(auto&& ti : t) cin >> ti;
  int sum = 0;
  for(auto ti : t){
    sum += ti;
    println("{}", max(-1ll, 6000 - sum));
  }
}
0