結果
| 問題 |
No.249 N言っちゃダメゲーム (2)
|
| コンテスト | |
| ユーザー |
kyabaria
|
| 提出日時 | 2018-09-12 12:10:38 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 434 bytes |
| コンパイル時間 | 1,451 ms |
| コンパイル使用メモリ | 167,380 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 10:51:55 |
| 合計ジャッジ時間 | 1,955 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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){
int a=n-1,b=k+1,c=a/b;
int num=a-c*b;
if(num==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