結果
問題 |
No.2835 Take and Flip
|
ユーザー |
|
提出日時 | 2024-08-11 21:27:06 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 83 ms / 2,000 ms |
コード長 | 418 bytes |
コンパイル時間 | 2,694 ms |
コンパイル使用メモリ | 244,804 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-08-11 21:27:11 |
合計ジャッジ時間 | 5,271 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "../algo/debug.hpp" #else #define debug(...) void(0) #endif void solve() { int n; cin >> n; vector<int> a(n); for(int i = 0; i < n; i++) cin >> a[i]; long long sm = accumulate(a.begin(), a.end(), 0LL); cout << sm << endl; } int main() { int T = 1; // cin >> T; while (T--) { solve(); } return 0; }