結果

問題 No.138 化石のバージョン
ユーザー N/AN/A
提出日時 2018-08-24 21:35:12
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 27,136 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 06:48:11
合計ジャッジ時間 1,117 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main(void) {
	int fsl[3], crt[3];

	scanf("%d.%d.%d", &fsl[0], &fsl[1], &fsl[2]);
	scanf("%d.%d.%d", &crt[0], &crt[1], &crt[2]);

	if (crt[0] > fsl[0])
		puts("NO");
	else if (crt[1] > fsl[1])
		puts("NO");
	else if (crt[2] > fsl[2])
		puts("NO");
	else
		puts("YES");

	return 0;
}
0