結果

問題 No.863 計算量
ユーザー mgingin142857mgingin142857
提出日時 2019-08-16 21:36:17
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 472 bytes
コンパイル時間 1,442 ms
コンパイル使用メモリ 166,864 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 15:16:42
合計ジャッジ時間 2,051 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define fi first
#define se second
typedef pair<ll,ll> P;
#define Mod 1000000007
using VP = vector<P>; using VVP = vector<VP>;
using VI = vector<ll>; using VVI = vector<VI>; using VVVI = vector<VVI>;
#define INF 12345678901234

int main(){
    ll a,b;
    cin>>a>>b;
    ll b1=a*40;
    ll b2=a*40*40;
    if(abs(b1-b)<abs(b2-b)) cout<<1<<endl;
    else cout<<2<<endl;
    return 0;
}
0