結果
問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
|
提出日時 | 2018-07-06 21:58:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 77 ms / 3,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 384 ms |
コンパイル使用メモリ | 53,464 KB |
実行使用メモリ | 7,184 KB |
最終ジャッジ日時 | 2024-07-01 02:56:32 |
合計ジャッジ時間 | 1,765 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
ソースコード
#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ long long n,sum,a[500000]; int main(void) { cin>>n; for(int i=0; i<n; i++) { cin>>a[i]; sum += a[i]; } cout<<sum<<endl; return 0; }