結果
問題 |
No.333 門松列を数え上げ
|
ユーザー |
![]() |
提出日時 | 2018-11-16 22:26:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 685 bytes |
コンパイル時間 | 802 ms |
コンパイル使用メモリ | 82,192 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 14:17:10 |
合計ジャッジ時間 | 1,427 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 2 WA * 5 |
ソースコード
//#include <bits/stdc++.h> #include<iostream> #include<iomanip> #include<numeric> #include<cstdio> #include<cmath> #include<string> #include<algorithm> #include<vector> #include<map> #include<stack> #include<queue> #include<ctype.h> #include <fstream> #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) using namespace std; typedef long long ll;//int64 typedef unsigned long long ull; int gcd(int a,int b){return b?gcd(b,a%b):a;} int lcm(int a,int b){return a*b/gcd(a,b);} int dy[4]={0,1,0,-1}; //----------program from here---------- int main(){ int A=0,B=0; cin >> A >> B; if(A<B){ cout << A-1 << endl; }else{ cout << 2000000000-A << endl; } }