結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
かぼちゃ
|
| 提出日時 | 2018-04-07 19:41:37 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 413 bytes |
| 記録 | |
| コンパイル時間 | 354 ms |
| コンパイル使用メモリ | 78,328 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-03-13 03:57:15 |
| 合計ジャッジ時間 | 1,345 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 4 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#define ALL(x) (x).begin(),(x).end()
using namespace std;
int main() {
int a1,b1,c1,a2,b2,c2;
scanf("%d.%d.%d",&a1,&b1,&c1);
scanf("%d.%d.%d",&a2,&b2,&c2);
string ans = "NO";
if(a1 > a2)ans = "YES";
if(a1 == a2 && b1 > b2)ans = "YES";
if(a1 == a2 && b1 == b2 && c1 > c2)ans = "YES";
cout << ans << endl;
return 0;
}
かぼちゃ