結果
問題 |
No.2335 Jump
|
ユーザー |
|
提出日時 | 2023-06-04 01:31:20 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 16 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 3,013 ms |
コンパイル使用メモリ | 245,540 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 03:20:02 |
合計ジャッジ時間 | 4,168 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "debug.hpp" #else #define debug(...) 1 #endif int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector<int> a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } int ans = a[n - 1] - n; cout << ans << '\n'; }