結果
| 問題 |
No.965 門松列が嫌い
|
| コンテスト | |
| ユーザー |
UGLO
|
| 提出日時 | 2020-08-24 01:17:19 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| コンパイル時間 | 1,992 ms |
| コンパイル使用メモリ | 168,340 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-15 19:33:42 |
| 合計ジャッジ時間 | 2,179 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); ++i)
using ll = long long;
int main(){
vector<ll> a(3);
rep(i,3) cin >> a[i];
ll x = a[1] - a[0];
ll y = a[2] - a[1] - 1;
cout << min(x,y) << endl;
}
UGLO