結果
| 問題 | No.3678 しゃべりすぎた男 |
| コンテスト | |
| ユーザー |
岩井星人、今年で30歳らしいよ
|
| 提出日時 | 2026-08-05 22:50:12 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 334µs | |
| コード長 | 536 bytes |
| 記録 | |
| コンパイル時間 | 3,448 ms |
| コンパイル使用メモリ | 167,940 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-05 12:46:00 |
| 合計ジャッジ時間 | 4,562 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
#include <iostream>
#include <vector>
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(NULL);
std::vector<int> times(7);
for (int i = 0; i < 7; ++i) {
std::cin >> times[i];
}
int contest_time = 6000;
int rem = contest_time;
for (int time : times) {
if (time != -1) {
rem -= time;
} else {
rem = -1;
}
int ans = (rem >= 0) ? rem : -1;
std::cout << ans << "\n";
}
return 0;
}
岩井星人、今年で30歳らしいよ