結果
| 問題 |
No.249 N言っちゃダメゲーム (2)
|
| コンテスト | |
| ユーザー |
kyabaria
|
| 提出日時 | 2018-09-12 12:12:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 408 bytes |
| コンパイル時間 | 1,649 ms |
| コンパイル使用メモリ | 165,192 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 10:55:19 |
| 合計ジャッジ時間 | 2,336 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
#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;
}
kyabaria