結果

問題 No.333 門松列を数え上げ
ユーザー ant2357ant2357
提出日時 2016-06-12 23:28:38
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 978 bytes
コンパイル時間 802 ms
コンパイル使用メモリ 93,728 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-17 19:00:43
合計ジャッジ時間 1,942 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <deque>
#include <algorithm>
#include <iomanip>
#include <functional>
#include <numeric>

#define REP(i, n) for(int i = 0;i < (n); i++)
#define REP2(i, x, n) for(int i = (x); i < (n); i++)
#define REPR(i, n) for(int i = (n); i >= 0; i--)

#define ALL(a) (a).begin(),(a).end()
#define SORT(c) sort((c).begin(),(c).end())
#define DESCSORT(c) sort(c.begin(), c.end(), greater<int>())

#define LL long long int
#define LD long double

#define PI 3.14159265358979

using namespace std;

//================================================

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	
	int A, B;
	cin >> A >> B;

	if (A < B) {
		REP2(i, 1, 2000000010) {
			if (B > i && i != A) {
				cout << i << "\n"; return 0;
			}
		}
	} else {
		REP2(i, 1, 2000000010) {
			if (B < i && i != A) {
				cout << i << "\n"; return 0;
			}
		}
	}

	return 0;
}
0