結果
問題 | No.481 1から10 |
ユーザー | Syuutaro |
提出日時 | 2018-03-19 18:32:37 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 27,008 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-01-02 22:08:21 |
合計ジャッジ時間 | 921 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
コンパイルメッセージ
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",&B); | ~~~~~^~~~~~~~~
ソースコード
#include <stdio.h> int main(){ //input,total of B int total = 0; for (int i = 0;i < 9;i++){ int B; scanf("%d",&B); total += B; } //output printf("%d\n",55-total); return 0; }