結果
| 問題 |
No.431 死亡フラグ
|
| コンテスト | |
| ユーザー |
r
|
| 提出日時 | 2016-12-23 13:34:26 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 207 bytes |
| コンパイル時間 | 394 ms |
| コンパイル使用メモリ | 53,716 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 15:24:13 |
| 合計ジャッジ時間 | 1,048 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d %d %d %d",&d1,&d2,&d3,&s);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <iostream>
using namespace std;
int main(){
int d1,d2,d3,s;
scanf("%d %d %d %d",&d1,&d2,&d3,&s);
if(s==1 || d1+d2+d3<2) printf("SURVIVED");
else printf("DEAD");
return 0;
}
r