結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー arutairu
提出日時 2021-08-16 11:42:56
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 424 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 28,672 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-09 05:24:05
合計ジャッジ時間 1,198 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <math.h>

int main(){
	int s,t;
	char c;
	scanf("%d%d %c",&s,&t,&c);
	//printf("%d%d%c\n",s,t,c);
	if(c=='<'){
		if(s<t){
			printf("YES\n");	
		}else{
			printf("NO\n");
		}
	}else if(c=='>'){
		
		if(s>t){
			
			printf("YES\n");
			
		}else{
			
			printf("NO\n");
		}
	}else if(c=='='){
		
		if(s==t){
			printf("YES\n");
			
		}else{
			
			printf("NO\n");
			
		}
		
		
		
		
	}
return 0;
}
0