結果
問題 | No.857 素振り |
ユーザー |
![]() |
提出日時 | 2025-03-19 16:33:15 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 191 bytes |
コンパイル時間 | 353 ms |
コンパイル使用メモリ | 24,320 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-19 16:33:17 |
合計ジャッジ時間 | 1,213 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
コンパイルメッセージ
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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> void main(void) { long long int x,y,z; scanf("%lld %lld %lld",&x,&y,&z); long long int max = z; if(z >= x){ max--; } if(z >= y){ max--; } printf("%lld",max); }