結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2019-01-07 22:53:41 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 406 bytes |
| コンパイル時間 | 636 ms |
| コンパイル使用メモリ | 63,056 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-24 00:31:31 |
| 合計ジャッジ時間 | 1,976 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 18 WA * 15 |
ソースコード
#include <iostream>
using namespace std;
const int n = 3;
int A[n], B[n];
bool flg = false;
void RecursiveJudge(int i)
{
int a = A[i], b = B[i];
if (i != n || a > b)
{
cout << "YES" << endl;
return;
}
if (a < b)
{
cout << "NO" << endl;
return;
}
RecursiveJudge(i + 1);
}
int main()
{
scanf("%d.%d.%d", &A[0], &A[1], &A[2]);
scanf("%d.%d.%d", &B[0], &B[1], &B[2]);
RecursiveJudge(0);
}
toshiro_yanagi