結果

問題 No.8 N言っちゃダメゲーム
ユーザー tadano_amoatadano_amoa
提出日時 2021-07-23 18:45:46
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 591 ms
コンパイル使用メモリ 29,060 KB
実行使用メモリ 4,508 KB
最終ジャッジ日時 2023-09-25 17:31:14
合計ジャッジ時間 1,549 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,376 KB
testcase_01 AC 0 ms
4,380 KB
testcase_02 AC 0 ms
4,376 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 1 ms
4,376 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(void){

  int P,a,i;
  int N[130000];
  int K[130000];

  scanf("%d",&P);
  for(i=0;i<P;i++){
    scanf("%d",&N[i]);
    scanf("%d",&K[i]);
  }

  for(i=0;i<P;i++){
    a=(N[i]-1)/(K[i]+1);
    if((N[i]-1)%(K[i]+1)!=0){
      a+=1;
    }
    if(a%2==0||N[i]<=K[i]){
      printf("Win\n");
    }
    else{
      printf("Lose\n");
    }
  }

return 0;
}
0