結果
| 問題 |
No.249 N言っちゃダメゲーム (2)
|
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2015-07-24 22:47:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 457 bytes |
| コンパイル時間 | 631 ms |
| コンパイル使用メモリ | 74,220 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-08 13:24:20 |
| 合計ジャッジ時間 | 1,167 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
#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;
}
koyumeishi