結果

問題 No.138 化石のバージョン
ユーザー kachipankachipan
提出日時 2023-07-03 13:12:51
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 473 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 28,312 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-24 10:14:12
合計ジャッジ時間 2,197 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <string.h>

int main()
{
	char fossilVer[6] = "";
	char assessVer[6] = "";

	scanf("%s", fossilVer);
	scanf("%s", assessVer);

	for (int i = 0;assessVer[i] != '\0';)
	{
		if (fossilVer[i] == assessVer[i])
		{
			i += 2;
		}
		else if (fossilVer[i] > assessVer[i])
		{
			printf("YES\n");
			return 0;
		}
		else
		{
			printf("NO\n");
			return 0;
		}
	}

	printf("NO\n");
	return 0;
}
0