結果
問題 |
No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
![]() |
提出日時 | 2019-02-24 19:32:40 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 271 bytes |
コンパイル時間 | 523 ms |
コンパイル使用メモリ | 119,424 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 13:36:51 |
合計ジャッジ時間 | 1,751 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | AC * 1 WA * 14 |
ソースコード
#include <iostream> #include <numeric> using namespace std; #define SIZE_OF_ARRAY(array) (sizeof(array))/sizeof(array[0]) int main() { int n; cin >> n; int num; int sum = 0; for (int i = 0; i < n; i++) { cin >> num; sum += num; } cout << sum / n << endl; }