結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー | yamaken1343 |
提出日時 | 2015-11-06 21:59:20 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 23,600 KB |
実行使用メモリ | 4,352 KB |
最終ジャッジ日時 | 2023-10-11 14:33:47 |
合計ジャッジ時間 | 992 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,352 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,i; int n[100],k[100]; scanf("%d",&p); for(i=0;i<p;i++){ scanf("%d%d",&n[i],&k[i]); } for(i=0;i<p;i++){ if((n[i]-1)%(k[i]+1) == 0) printf("Lose\n"); else printf("win\n"); } return 0; }