結果
| 問題 | 
                            No.2835 Take and Flip
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-08-09 21:43:34 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 119 ms / 2,000 ms | 
| コード長 | 240 bytes | 
| コンパイル時間 | 478 ms | 
| コンパイル使用メモリ | 66,736 KB | 
| 最終ジャッジ日時 | 2025-02-23 21:28:50 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 22 | 
ソースコード
#include <iostream>
using namespace std;
typedef long long ll;
int main()
{
    int n;
    cin >> n;
    ll ans = 0;
    for (int i = 0; i < n; i++)
    {
        int a;
        cin >> a;
        ans += a;
    }
    cout << ans << endl;
}