結果
| 問題 | No.3066 Collecting Coins Speedrun 1 |
| コンテスト | |
| ユーザー |
tominn
|
| 提出日時 | 2025-04-01 23:30:30 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 2,018 ms |
| コンパイル使用メモリ | 332,572 KB |
| 実行使用メモリ | 9,292 KB |
| 最終ジャッジ日時 | 2026-07-08 07:36:11 |
| 合計ジャッジ時間 | 4,849 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 WA * 9 |
ソースコード
#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];
int ans = abs(c[0]) * 2 + abs(c[n - 1]) * 2;
cout << ans << endl;
return 0;
}
tominn