結果

問題 No.8 N言っちゃダメゲーム
ユーザー 綾地寧々綾地寧々
提出日時 2015-05-01 17:41:50
言語 PHP
(8.3.4)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 320 bytes
コンパイル時間 959 ms
コンパイル使用メモリ 18,348 KB
実行使用メモリ 18,832 KB
最終ジャッジ日時 2023-09-19 04:53:11
合計ジャッジ時間 2,277 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
18,704 KB
testcase_01 AC 17 ms
18,696 KB
testcase_02 AC 17 ms
18,696 KB
testcase_03 AC 17 ms
18,688 KB
testcase_04 AC 17 ms
18,688 KB
testcase_05 AC 16 ms
18,832 KB
testcase_06 AC 17 ms
18,816 KB
testcase_07 AC 16 ms
18,704 KB
testcase_08 AC 16 ms
18,708 KB
testcase_09 AC 17 ms
18,696 KB
testcase_10 AC 16 ms
18,580 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$gametime = trim(fgets(STDIN));
$n = array();
$k = array();
for ( $in=0; $in<$gametime; $in++ ) {
	list($n[], $k[]) = explode(" ", trim(fgets(STDIN)));
}

for ( $time=0; $time<$gametime; $time++ ) {
	if ( (($n[$time]-2) % ($k[$time]+1)) < $k[$time] ) {
		echo "Win".PHP_EOL;
	}
	else {
		echo "Lose".PHP_EOL;
	}
}
0