結果
| 問題 | No.3165 [Cherry 7th Tune A] Croissants Continu |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-30 23:33:31 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 445 bytes |
| 記録 | |
| コンパイル時間 | 1,998 ms |
| コンパイル使用メモリ | 329,660 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-11 04:55:47 |
| 合計ジャッジ時間 | 6,639 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}
}