結果
| 問題 | No.369 足し間違い |
| コンテスト | |
| ユーザー |
algon_320
|
| 提出日時 | 2017-02-05 20:23:49 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 104 bytes |
| 記録 | |
| コンパイル時間 | 374 ms |
| コンパイル使用メモリ | 71,152 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-30 06:31:41 |
| 合計ジャッジ時間 | 1,197 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
コンパイルメッセージ
main.cpp:2:11: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | int n,a,x;main(){std::cin>>n;while(n--)std::cin>>a,x+=a;std::cin>>a;std::cout<<x-a;}
| ^~~~
ソースコード
#include <iostream>
int n,a,x;main(){std::cin>>n;while(n--)std::cin>>a,x+=a;std::cin>>a;std::cout<<x-a;}
algon_320