結果
問題 |
No.333 門松列を数え上げ
|
ユーザー |
![]() |
提出日時 | 2016-01-24 11:43:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 500 bytes |
コンパイル時間 | 502 ms |
コンパイル使用メモリ | 59,588 KB |
実行使用メモリ | 6,940 KB |
最終ジャッジ日時 | 2024-09-21 15:09:27 |
合計ジャッジ時間 | 1,000 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 WA * 3 |
ソースコード
#include <assert.h> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <string> #include <algorithm> #include <vector> #include <climits> using namespace std; typedef unsigned char uchar; typedef unsigned int uint; typedef long long ll; typedef unsigned long long ull; #define NMAX 2000000000 int main() { int A, B; cin >> A >> B; int ans = 0; if (A > B) { ans += A - B; ans = NMAX - A; } else { ans += B - 2; } cout << ans << endl; return 0; }