結果

問題 No.857 素振り
ユーザー Maeda
提出日時 2025-03-19 16:31:48
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 179 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 24,448 KB
実行使用メモリ 7,328 KB
最終ジャッジ日時 2025-03-19 16:31:49
合計ジャッジ時間 1,142 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 WA * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
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("%lld %lld %lld",&x,&y,&z);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

void main(void) {
	long long int x,y,z;
	scanf("%lld %lld %lld",&x,&y,&z);
	int max = z;
	if(z >= x){
		max--;
	}
	if(z >= y){
		max--;
	}
	printf("%d",max);
}
0