結果
| 問題 | No.369 足し間違い |
| コンテスト | |
| ユーザー |
algon_320
|
| 提出日時 | 2017-02-05 20:23:49 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 104 bytes |
| 記録 | |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 61,952 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 10:12:52 |
| 合計ジャッジ時間 | 1,068 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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