結果

問題 No.333 門松列を数え上げ
ユーザー alpha_virginis
提出日時 2016-01-16 13:24:45
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 1,250 ms
コンパイル使用メモリ 157,404 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 19:56:11
合計ジャッジ時間 1,604 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

int main() {

  const int max = 2000000000;
  int A, B;
  std::cin >> A >> B;
  if( A < B ) {
    std::cout << B - A << std::endl;
  }
  else {
    std::cout << max - A << std::endl;
  }
  
  return 0;
}
0