結果
| 問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-03-13 17:57:52 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 362 bytes | 
| コンパイル時間 | 444 ms | 
| コンパイル使用メモリ | 24,320 KB | 
| 実行使用メモリ | 7,324 KB | 
| 最終ジャッジ日時 | 2025-03-13 17:57:54 | 
| 合計ジャッジ時間 | 1,553 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 35 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%d %d ",&s,&t);
      |         ^~~~~~~~~~~~~~~~~~~~~
main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |         scanf("%c",&symbol);
      |         ^~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
#include <stdbool.h>
void main(void){
	int s,t;
	scanf("%d %d ",&s,&t);
	char symbol = 'a';
	scanf("%c",&symbol);
	bool flg = false;
	if(symbol == '<'){
		if(s < t){
			flg = true;
		}
	}else if(symbol == '>'){
		if(s > t){
			flg = true;
		}
	}else{
		if(s == t){
			flg = true;
		}
	}
	if(flg){
		printf("YES");
	}else{
		printf("NO");
	}
}
            
            
            
        