結果

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

テストケース

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

ソースコード

diff #

#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>

using namespace std;

int main() {
	int n, k;
	int win = 0;

	for (int i = 0; i < 1000; i++) {
		cin >> n >> k;
		int tmp = (n - 1) % (k + 1);
		if (1 <= tmp && tmp <= k) {
			win++;
		}
	}
	cout << win << endl;
	return 0;
}
0