結果

問題 No.333 門松列を数え上げ
ユーザー yamaken1343
提出日時 2016-05-31 21:53:34
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-08 01:21:25
合計ジャッジ時間 1,154 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%ld%ld",&a,&b);
      |         ^~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
#define MAX 2000000000
int main(void){
	long int a,b,c;
	scanf("%ld%ld",&a,&b);
	if(b>a){
		c = b-2;
	}else{
		c = MAX - 2;
	}
	printf("%ld\n",c);
	return 0;
}
0