結果
問題 | No.2835 Take and Flip |
ユーザー |
|
提出日時 | 2024-08-09 22:08:02 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 3,077 ms |
コンパイル使用メモリ | 266,424 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-08-09 22:08:07 |
合計ジャッジ時間 | 4,646 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#define _GLIBCXX_DEBUG #include<bits/stdc++.h> using namespace std; int N,A[201010]; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); cout<<fixed<<setprecision(15); cin>>N; for(int i=0;i<N;i++)cin>>A[i]; long long ans=0; for(int i=0;i<N;i++)ans+=A[i]; cout<<ans<<endl; }