提出 #65848381
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
//#define filename "xxx"
#define FileOperations() freopen(filename".in", "r", stdin), freopen(filename".out", "w", stdout)
//#define multi_cases 1
#define inf 0x3f3f3f3f
#define Linf 0x3f3f3f3f3f3f3f3f
#define pii pair<int, int>
#define all(v) v.begin(), v.end()
#define upw(i, a, b) for(int i = (a); i <= (b); ++i)
#define dnw(i, a, b) for(int i = (a); i >= (b); --i)
template<class T> bool vmax(T &a, T b) { return b > a ? a = b, true : false; }
template<class T> bool vmin(T &a, T b) { return b < a ? a = b, true : false; }
template<class T> void clear(T &x) { T().swap(x); }
// const int N = _;
int a, b, c, d;
void Traveller() {
cin >> a >> b >> c >> d;
puts(a*60 + b > c*60 + d ? "Yes" : "No");
}
signed main() {
#ifdef filename
FileOperations();
#endif
signed _ = 1;
#ifdef multi_cases
scanf("%d", &_);
#endif
while(_--) Traveller();
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Not Acceptable |
| ユーザ | Wangfengchi |
| 言語 | C++ 23 (Clang 16.0.6) |
| 得点 | 100 |
| コード長 | 960 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3668 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example_00.txt, example_01.txt, example_02.txt |
| All | example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| example_00.txt | AC | 1 ms | 3532 KiB |
| example_01.txt | AC | 1 ms | 3540 KiB |
| example_02.txt | AC | 1 ms | 3544 KiB |
| hand_00.txt | AC | 1 ms | 3424 KiB |
| hand_01.txt | AC | 1 ms | 3436 KiB |
| hand_02.txt | AC | 1 ms | 3512 KiB |
| hand_03.txt | AC | 1 ms | 3528 KiB |
| hand_04.txt | AC | 1 ms | 3504 KiB |
| hand_05.txt | AC | 1 ms | 3540 KiB |
| random_00.txt | AC | 1 ms | 3524 KiB |
| random_01.txt | AC | 1 ms | 3532 KiB |
| random_02.txt | AC | 1 ms | 3468 KiB |
| random_03.txt | AC | 1 ms | 3668 KiB |
| random_04.txt | AC | 1 ms | 3504 KiB |
| random_05.txt | AC | 1 ms | 3544 KiB |
| random_06.txt | AC | 1 ms | 3460 KiB |
| random_07.txt | AC | 1 ms | 3612 KiB |
| random_08.txt | AC | 1 ms | 3400 KiB |
| random_09.txt | AC | 1 ms | 3496 KiB |
| random_10.txt | AC | 1 ms | 3612 KiB |
| random_11.txt | AC | 1 ms | 3472 KiB |
| random_12.txt | AC | 1 ms | 3524 KiB |
| random_13.txt | AC | 1 ms | 3528 KiB |
| random_14.txt | AC | 1 ms | 3544 KiB |