結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-22 19:33:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 877 bytes |
| コンパイル時間 | 706 ms |
| コンパイル使用メモリ | 81,376 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-20 12:49:14 |
| 合計ジャッジ時間 | 1,905 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 14 |
ソースコード
#include <iostream> //cin, cout
#include <vector> //vector
#include <algorithm> //sort,min,max,count
#include <string> //string,getline, to_string
#include <cstdlib> //abs(int)
#include <utility> //swap, pair
#include <deque> //deque
#include <climits> //INT_MAX
#include <bitset> //bitset
#include <cmath> //sqrt, ceil. M_PI, pow, sin
#include <ios> //fixed
#include <iomanip> //setprecision
using namespace std;
int main() {
char a[6];
char temp;
for (int i = 0; i < 6; i++) {
cin.get(a[i]);
cin.get(temp);
}
if (a[3] < a[0]) {
cout << "YES" << endl;
}
else if (a[3] > a[0]) {
cout << "NO" << endl;
}
else {
if (a[4] < a[1]) {
cout << "YES" << endl;
}
else if (a[4] > a[1]) {
cout << "NO" << endl;
}
else {
if (a[5] <= a[2]) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
}
return 0;
}