結果
問題 |
No.2835 Take and Flip
|
ユーザー |
![]() |
提出日時 | 2024-09-28 15:55:34 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 25 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 1,739 ms |
コンパイル使用メモリ | 158,744 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-09-28 15:55:38 |
合計ジャッジ時間 | 3,504 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll=long long; int a[200001]; void solve() { int n;cin>>n; ll ans=0; for(int i=1;i<=n;++i) { ll x;cin>>x; ans+=x; } cout<<ans; } int main() { ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); int _;_=1; while(_--) solve(); return 0; }