結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー | monburan_0401 |
提出日時 | 2018-09-21 00:05:27 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 302 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 27,520 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-09-25 10:37:09 |
合計ジャッジ時間 | 951 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
ソースコード
#include <stdio.h> int main(void){ int P; // times of match int N,K; scanf("%d",&P); for(int i = 0; i < P; i++){ scanf("%d %d",&N,&K); if((N-1)%(K+1) == 0){ printf("Lose\n"); }else{ printf("Yes\n"); } } return 0; }