結果
| 問題 | No.333 門松列を数え上げ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-15 20:35:25 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 277µs | |
| コード長 | 597 bytes |
| 記録 | |
| コンパイル時間 | 451 ms |
| コンパイル使用メモリ | 110,732 KB |
| 実行使用メモリ | 9,776 KB |
| 最終ジャッジ日時 | 2026-09-02 06:43:55 |
| 合計ジャッジ時間 | 1,441 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
#define _USE_MATH_DEFINES
#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <complex>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <limits>
#include <climits>
#include <cfloat>
#include <functional>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
int c;
if(a < b)
c = b - 2;
else
c = 1999999999 - b;
cout << c << endl;
return 0;
}