結果
問題 | No.1374 Absolute Game |
ユーザー |
|
提出日時 | 2023-04-23 21:10:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 2,108 ms |
コンパイル使用メモリ | 193,948 KB |
最終ジャッジ日時 | 2025-02-12 13:32:46 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 WA * 21 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {int n;cin >> n;vector<int> c(n);for (int i = 0; i < n; i++){cin >> c[i];}cout << abs(accumulate(c.begin(), c.end(), 0LL)) << endl;}