結果

問題 No.249 N言っちゃダメゲーム (2)
ユーザー monburan_0401
提出日時 2018-09-21 00:09:07
言語 C
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 245 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-18 08:37:21
合計ジャッジ時間 973 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 1 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(void){
    int N,K;
    int count = 0;
    
    for(int i = 0; i < 1000; i++){
        scanf("%d %d",&N,&K);
        if((N-1)%(K+1) != 0){
            count++;
        }
    }
    printf("%d\n",count);
    return 0;
}
0