結果
問題 |
No.138 化石のバージョン
|
ユーザー |
![]() |
提出日時 | 2017-01-21 01:06:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 391 bytes |
コンパイル時間 | 616 ms |
コンパイル使用メモリ | 63,488 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 04:08:40 |
合計ジャッジ時間 | 1,672 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 14 |
ソースコード
#include <iostream> #include <cstdio> using namespace std; int main() { int A[3], B[3]; scanf("%d.%d.%d", &A[0], &A[1], &A[2]); scanf("%d.%d.%d", &B[0], &B[1], &B[2]); bool is_new = 0; for (int i = 0; i < 3; i++) { if (A[i] < B[i]) { is_new = 1; break; } } cout << (!is_new ? "YES" : "NO") << endl; return 0; }