結果

問題 No.249 N言っちゃダメゲーム (2)
ユーザー kyabariakyabaria
提出日時 2018-09-12 12:12:36
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 1,808 ms
コンパイル使用メモリ 163,656 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-08 18:09:35
合計ジャッジ時間 2,109 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
typedef long long ll;
#define INF 1000000000
#define MOD 1000000007
using namespace std;
bool check(ll n,ll k){
    ll a=n-1,b=k+1;
    if(a%b==0)return false;
    else return true;
}
int main(void){
    int ans=0;
    int d;
    cin>>d;
    for(int i=0;i<1000;i++){
        ll n,k;
        cin>>n>>k;
        if(check(n,k)){
            ans++;
        }
    }
    cout<<ans<<endl;
}
0