結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
tsuishi
|
| 提出日時 | 2022-06-24 14:25:20 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 191 bytes |
| コンパイル時間 | 751 ms |
| コンパイル使用メモリ | 20,096 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 09:19:05 |
| 合計ジャッジ時間 | 1,431 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d%d%d%d",&d1,&d2,&d3,&s);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main (void){
int d1,d2,d3,s;
scanf("%d%d%d%d",&d1,&d2,&d3,&s);
if( (1-s)*(d1+d2+d3) < 2 )
printf("SURVIVED\n");
else
printf("DEAD\n");
}
tsuishi