結果
| 問題 |
No.333 門松列を数え上げ
|
| コンテスト | |
| ユーザー |
SDESTINY_kpr
|
| 提出日時 | 2020-03-11 23:59:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 343 bytes |
| コンパイル時間 | 1,534 ms |
| コンパイル使用メモリ | 165,432 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2024-11-16 04:05:04 |
| 合計ジャッジ時間 | 2,136 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int,int>;
#define rep(i,n) for(int i=0;i<n;i++)
const ll mod = ll(1e9) + 7;
const int INF = 1<<29;
int main(){
int a,b;
cin >> a >> b;
int ans = 0;
if (a>b) ans += ll(2*1e9)-b-1;
else ans += b - 2;
cout << ans << endl;
return 0;
}
SDESTINY_kpr