結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-19 11:16:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 228 bytes |
| コンパイル時間 | 488 ms |
| コンパイル使用メモリ | 53,080 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 05:31:25 |
| 合計ジャッジ時間 | 980 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | scanf("%d", &b);
| ~~~~~^~~~~~~~~~
ソースコード
#include <stdio.h>
#include <iostream>
using namespace std;
int main(void)
{
int a, b;
a = 55;
for (int i = 0; i < 9; i++)
{
scanf("%d", &b);
a -= b;
}
printf("%d\n", a);
return 0;
}