結果
問題 |
No.2835 Take and Flip
|
ユーザー |
|
提出日時 | 2024-08-10 09:34:39 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.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 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#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; }