結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー HaijinnHaijinn
提出日時 2016-12-18 20:18:45
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 20,224 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-08 06:45:31
合計ジャッジ時間 1,023 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
5,376 KB
testcase_02 WA -
testcase_03 AC 1 ms
5,376 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 0 ms
5,376 KB
testcase_07 WA -
testcase_08 AC 0 ms
5,376 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 0 ms
5,376 KB
testcase_13 AC 1 ms
5,376 KB
testcase_14 AC 1 ms
5,376 KB
testcase_15 AC 1 ms
5,376 KB
testcase_16 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |         scanf("%d%d",&ab,&ba);
      |         ^~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
#include<string.h>


int main(void){
	char a[10000];
	char b[10000];
	int ab;
	int ba;
	scanf("%d%d",&ab,&ba);

	//if((ab>=0&&9>=ab)&&(ba>=0&&9>=ba)){
	
		if(ab<=12345&&ba<=12345){
			printf("OK\n");
			
		}else{
			printf("NG\n");
		}
		
	/*}else{
		printf("NGa");
		
		
	}
	*/
	
	return 0;
}
0