結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー pengin_2000
提出日時 2021-07-11 02:30:20
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 27,520 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 02:57:40
合計ジャッジ時間 1,184 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main()
{
	int s, t;
	char c;
	scanf("%d %d %c", &s, &t, &c);
	int f = -1;
	if (c == '<' && s < t)f = 1;
	if (c == '>' && s > t)f = 1;
	if (c == '=' && s == t)f = 1;
	if (f > 0)
		printf("YES\n");
	else
		printf("NO\n");
	return 0;
}
0