結果
| 問題 | No.3066 Collecting Coins Speedrun 1 |
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2025-03-22 18:20:40 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 447 bytes |
| 記録 | |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 51,824 KB |
| 実行使用メモリ | 9,276 KB |
| 最終ジャッジ日時 | 2026-07-07 20:20:18 |
| 合計ジャッジ時間 | 2,025 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 WA * 9 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 3066.cc: No.3066 Collecting Coins Speedrun 1 - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* constant */
const int MAX_N = 100000;
/* typedef */
/* global variables */
int cs[MAX_N];
/* subroutines */
/* main */
int main() {
int n;
scanf("%d", &n);
for (int i = 0; i < n; i++) scanf("%d", cs + i);
int l = (cs[n - 1] - cs[0]) * 2;
printf("%d\n", l);
return 0;
}
tnakao0123