結果

問題 No.2835 Take and Flip
コンテスト
ユーザー vjudge1
提出日時 2024-09-28 15:55:34
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 13 ms / 2,000 ms
+ 179µs
コード長 299 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 803 ms
コンパイル使用メモリ 172,748 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-09-05 16:50:53
合計ジャッジ時間 4,499 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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;
}
0