結果

問題 No.2835 Take and Flip
ユーザー makichanmakichan
提出日時 2024-08-10 09:34:39
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 491 bytes
コンパイル時間 5,261 ms
コンパイル使用メモリ 306,992 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-08-10 09:34:47
合計ジャッジ時間 7,674 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 84 ms
5,376 KB
testcase_04 AC 89 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 72 ms
5,376 KB
testcase_07 AC 75 ms
5,376 KB
testcase_08 AC 68 ms
5,376 KB
testcase_09 AC 78 ms
5,376 KB
testcase_10 AC 84 ms
5,376 KB
testcase_11 AC 79 ms
5,376 KB
testcase_12 AC 78 ms
5,376 KB
testcase_13 AC 79 ms
5,376 KB
testcase_14 AC 32 ms
5,376 KB
testcase_15 AC 2 ms
5,376 KB
testcase_16 AC 50 ms
5,376 KB
testcase_17 AC 7 ms
5,376 KB
testcase_18 AC 61 ms
5,376 KB
testcase_19 AC 74 ms
5,376 KB
testcase_20 AC 28 ms
5,376 KB
testcase_21 AC 72 ms
5,376 KB
testcase_22 AC 52 ms
5,376 KB
testcase_23 AC 25 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using mint = atcoder::static_modint<998244353>;
//using mint = atcoder::static_modint<1000000007>;
using namespace std;
using namespace atcoder;
using ld = long double;
using ll = long long;
#define mp(a,b) make_pair(a,b)
#define rep(i,s,n) for(int i=s; i<n; i++)
const vector<int> dx{1,0,-1,0},dy{0,1,0,-1};

int main(){
    int n;
    cin >> n;
    ll s=0;
    rep(i,0,n){
        ll a;
        cin >> a;
        s+=a;
    }
    cout << s;
}
0