結果
問題 |
No.162 8020運動
|
ユーザー |
![]() |
提出日時 | 2015-03-06 00:17:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 326 ms |
コンパイル使用メモリ | 22,912 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-24 09:47:22 |
合計ジャッジ時間 | 951 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 5 WA * 21 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:10:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%d", i?&P[i-1]:&A); | ~~~~~^~~~~~~~~~~~~~~~~~~~
ソースコード
#include<cstdio> using namespace std; int main() { int A, P[3]; for(int i = 0; i < 4; i++) { scanf("%d", i?&P[i-1]:&A); } if(P[2] == 100) { printf("0\n"); } else { printf("28\n"); } return 0; }