結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-08-03 15:43:44 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 563 bytes |
| コンパイル時間 | 731 ms |
| コンパイル使用メモリ | 103,908 KB |
| 最終ジャッジ日時 | 2025-02-15 21:49:03 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 4 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<set>
#include<bitset>
#include<math.h>
#include<map>
#include<queue>
#include<iomanip>
using namespace std;
int main(){
int a0, b0, c0, a1, b1, c1;
char c;
cin >> a0 >> c >> b0 >> c >> c0 >> a1 >> c >> b1 >> c >> c1;
if (a0 > a1) cout << "YES" << endl;
else if (a0 < a1) cout << "NO" << endl;
else if (b0 > b1) cout << "YES" << endl;
else if (b0 < b1) cout << "NO" << endl;
else if (c0 > c1) cout << "YES" << endl;
else cout << "NO" << endl;
}
kpinkcat