結果

問題 No.138 化石のバージョン
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2019-01-07 22:53:41
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 406 bytes
コンパイル時間 669 ms
コンパイル使用メモリ 63,060 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-08-15 16:34:36
合計ジャッジ時間 2,140 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 1 ms
4,380 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,384 KB
testcase_17 AC 1 ms
4,380 KB
testcase_18 AC 1 ms
4,376 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 1 ms
4,384 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 2 ms
4,380 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 1 ms
4,376 KB
testcase_34 AC 1 ms
4,380 KB
testcase_35 AC 1 ms
4,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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);
}
0