結果
問題 | No.2835 Take and Flip |
ユーザー |
![]() |
提出日時 | 2024-08-09 21:22:24 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 109 ms / 2,000 ms |
コード長 | 340 bytes |
コンパイル時間 | 5,237 ms |
コンパイル使用メモリ | 307,340 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-08-09 21:22:35 |
合計ジャッジ時間 | 7,008 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#include <atcoder/all>#include <bits/stdc++.h>#define rep(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)using namespace atcoder;using namespace std;typedef long long ll;int main() {int n;cin >> n;vector<ll> a(n);rep(i, 0, n) cin >> a[i];ll ans = 0;rep(i, 0, n) ans += a[i];cout << ans << endl;}