結果

問題 No.249 N言っちゃダメゲーム (2)
ユーザー pekempeypekempey
提出日時 2015-07-24 22:32:24
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 898 bytes
コンパイル時間 2,359 ms
コンパイル使用メモリ 143,072 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-22 22:29:15
合計ジャッジ時間 2,966 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, a) for (int i = 0; i < (a); i++)
#define rep2(i, a, b) for (int i = (a); i < (b); i++)
#define repr(i, a) for (int i = (a) - 1; i >= 0; i--)
#define repr2(i, a, b) for (int i = (b) - 1; i >= (a); i--)
#define itall(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
const ll inf = 1e9;
const ll mod = 1e9 + 7;
const double pi = acos(-1);
const double eps = 1e-8;
template<typename T> inline T sq(T a) { return a * a; }
template<typename T> inline T cb(T a) { return a * a * a; }
template<typename T> inline bool umin(T &a, const T &b) { return b < a && (a = b, true); }
template<typename T> inline bool umax(T &a, const T &b) { return a < b && (a = b, true); }

int main() {
    int ans = 0;
    int P = 1000;
    rep (i, P) {
        int N, K;
        cin >> N >> K;

        if (N % (K + 1) == 1) ans++;
    }

    cout << P - ans << endl;
}
0