結果

問題 No.249 N言っちゃダメゲーム (2)
ユーザー koyumeishikoyumeishi
提出日時 2015-07-24 22:47:53
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 457 bytes
コンパイル時間 505 ms
コンパイル使用メモリ 73,512 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-22 22:39:43
合計ジャッジ時間 1,116 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
#include <set>
using namespace std;

int main(){
	int x = 1000;
	vector<long long> n(x), k(x);

	for(int i=0; i<x; i++){
		cin >> n[i] >> k[i];
	}

	int ans = 0;
	for(int i=0; i<x; i++){
		if(n[i] <= k[i]) ans++;
		else if((n[i]-1) % (k[i]+1) != 0) ans++;
	}

	cout << ans << endl;
	return 0;
}
0