結果
問題 |
No.3165 [Cherry 7th Tune A] Croissants Continu
|
ユーザー |
|
提出日時 | 2025-05-30 23:33:31 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 445 bytes |
コンパイル時間 | 3,130 ms |
コンパイル使用メモリ | 271,364 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2025-05-30 23:33:40 |
合計ジャッジ時間 | 8,786 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 10 WA * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; constexpr ll inf = 2e18; constexpr ll mod = 998244353; int t,n,a[300000]; int main(){ cin >> t; while(t--){ cin >> n; ll ans = 0; for(int i = 0; i < n; i++){ cin >> a[i]; ans += a[i]; } if(n == 1){ cout << 1 << endl; } else{ cout << ans << endl; } } }