結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| ユーザー |
suppy193
|
| 提出日時 | 2015-06-17 11:01:51 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 222 bytes |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 20,352 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 03:29:01 |
| 合計ジャッジ時間 | 640 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 4 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d", &P);
| ^~~~~~~~~~~~~~~
main.c:7:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d%d", &N, &K);
| ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
int i, P, N, K;
scanf("%d", &P);
for(i = 0;i < P;i++){
scanf("%d%d", &N, &K);
if((N - 1) % (K + 1) == 0){
printf("lose\n");
}
else{
printf("Win\n");
}
}
return 0;
}
suppy193