結果
| 問題 | No.3406 Joya no Kane |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-05 15:34:40 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 871 bytes |
| 記録 | |
| コンパイル時間 | 773 ms |
| コンパイル使用メモリ | 89,780 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-05 15:34:42 |
| 合計ジャッジ時間 | 1,916 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
using namespace std;
struct FastInput {
inline FastInput& operator>>(int& x) {
x = 0;
char c = getchar_unlocked();
while (c < '0' || c > '9') c = getchar_unlocked();
while (c >= '0' && c <= '9') {
x = (x << 3) + (x << 1) + (c - '0');
c = getchar_unlocked();
}
return *this;
}
} fast_in;
inline void fast_print(bool condition) {
if (condition) fwrite("Yes\n", 1, 4, stdout);
else fwrite("No\n", 1, 3, stdout);
}
void solve() {
int n, a, h, m, s;
fast_in >> n >> a >> h >> m >> s;
const int SECONDS_IN_DAY = 24 * 60 * 60;
int current_total = h * 3600 + m * 60 + s;
int added_total = n * a;
fast_print(current_total + added_total >= SECONDS_IN_DAY);
}
int main() {
solve();
return 0;
}