結果

問題 No.333 門松列を数え上げ
ユーザー square1001square1001
提出日時 2016-10-29 18:21:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 169 bytes
コンパイル時間 1,526 ms
コンパイル使用メモリ 164,740 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-24 18:07:36
合計ジャッジ時間 1,777 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int a, b;
int main() {
	cin >> a >> b;
	if(a > b) cout << 1999999999 - b << endl;
	else cout << a - 1 << endl;
	return 0;
}
0