結果
| 問題 | No.3678 しゃべりすぎた男 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-05 13:07:54 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,376 bytes |
| 記録 | |
| コンパイル時間 | 3,816 ms |
| コンパイル使用メモリ | 377,052 KB |
| 実行使用メモリ | 9,776 KB |
| 最終ジャッジ日時 | 2026-09-05 13:08:43 |
| 合計ジャッジ時間 | 5,867 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 WA * 5 |
ソースコード
#line 1 "main.cpp"
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
#line 3 "/home/WebP/kyopro/cp-library/lib/util.hpp"
using namespace std;
using ll = long long;
using ld = long double;
template<class T> using greater_queue = priority_queue<T,vector<T>,greater<T>>;
#define rep(i,s,n) for (int i = (s); i < (n); i++)
#define rep1(i,s,n) for (int i = (s); i <= (n); i++)
#define REP(i,n,s) for (int i = (n)-1; i >= s; i--)
#define REP1(i,n,s) for (int i = (n); i >= s; i--)
#define all(a) (a).begin(), (a).end()
#define rall(a) (a).rbegin(), (a).rend()
inline void YesNo(const bool& b) { cout << (b ? "Yes\n" : "No\n"); }
template<class T> constexpr int sz(const T& a) { return (int)a.size(); }
template<class T>
constexpr bool chmax(T& a, const T& b) {
if (a >= b) return false;
a = b;
return true;
}
template<class T>
constexpr bool chmin(T& a, const T& b) {
if (a <= b) return false;
a = b;
return true;
}
#line 7 "main.cpp"
void solve() {
int n = 7;
vector<int> t(n);
rep(i,0,n) cin >> t[i];
int rem = 6000;
rep(i,0,n) {
rem -= t[i];
if (rem < 0 || t[i] == -1) cout << -1 << endl;
else cout << rem << endl;
}
}
int main() {
cin.tie(nullptr) -> sync_with_stdio(false);
cout << fixed << setprecision(15);
int t = 1;
// cin >> t;
for (int ti = 0; ti < t; ti++) solve();
return 0;
}