結果
| 問題 |
No.8100 始業式
|
| コンテスト | |
| ユーザー |
3mEhsfd8aG5jx2t
|
| 提出日時 | 2023-03-31 21:48:37 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 904 bytes |
| コンパイル時間 | 1,709 ms |
| コンパイル使用メモリ | 196,916 KB |
| 最終ジャッジ日時 | 2025-02-11 20:13:34 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#include<bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using namespace std;
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
template< int sz >
struct FastInput {
char buf[sz + 1];
char* o;
FastInput() { init(); }
void init() {
o = buf;
buf[fread(buf, sizeof(char), sizeof(char) * sz, stdin)] = '\0';
}
int64_t read() {
int64_t ret = 0, sign = 1;
while(*o && *o <= 32) ++o;
if(*o == '-') sign *= -1, ++o;
while(*o >= '0' && *o <= '9') {
ret *= 10;
ret += *o++ - '0';
}
return ret * sign;
}
};
int main() {
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int T;
cin >> T;
string c;
REP(_, T) {
int N;
cin >> N;
int ans = 0;
REP(i, N) {
int x;
cin >> x;
ans += x;
}
cout << ans;
}
cout << endl;
}
3mEhsfd8aG5jx2t