結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

signed main(){
  int a, b; cin >> a >> b;
  if( b < a )
    cout << a - 2 << endl;
  else
    cout << ( int ) ( 2e9 ) - a - 1 << endl;
  return 0;
}
0