結果

問題 No.2835 Take and Flip
ユーザー hongrock
提出日時 2024-08-17 09:39:46
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 468 bytes
コンパイル時間 1,911 ms
コンパイル使用メモリ 192,708 KB
最終ジャッジ日時 2025-02-23 22:57:59
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

#define pb emplace_back
#define mp make_pair
 
using ll = long long;
using pii = pair<int,int>;
 
constexpr int mod = 998244353;
constexpr int inf = 0x3f3f3f3f;
constexpr int N = 2e5 + 10;

void _main(){
  int n;
  cin >> n;
  vector<int> a(n);
  for(int &v : a) cin >> v;
  cout << accumulate(a.begin(), a.end(), 0ll) << '\n';
}

int main(){
  ios::sync_with_stdio(0);
  cin.tie(0); cout.tie(0);
  _main();
  return 0;
}
0