結果

問題 No.661 ハローキティはりんご3個分
ユーザー dong_fengdong_feng
提出日時 2018-04-30 02:22:47
言語 PHP
(8.2.11)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 396 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 18,584 KB
実行使用メモリ 18,936 KB
最終ジャッジ日時 2023-09-10 08:17:46
合計ジャッジ時間 665 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
18,788 KB
testcase_01 AC 16 ms
18,900 KB
testcase_02 AC 15 ms
18,876 KB
testcase_03 AC 15 ms
18,936 KB
testcase_04 AC 15 ms
18,812 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

$inputNumber = fgets(STDIN);

for($i=0;$i<$inputNumber;$i++){
	$inputAppleNumbers[$i] = fgets(STDIN);
}

//print_r($inputAppleNumbers);

for($i=0;$i<$inputNumber;$i++){
//	echo ($inputAppleNumbers[$i]%40==0).": ";
	echo ($inputAppleNumbers[$i]%40==0)?'ikisugi':
	(($inputAppleNumbers[$i]%10==0)?'sugi':
	(($inputAppleNumbers[$i]%8==0)?'iki':
	($inputAppleNumbers[$i]/3)));
	echo PHP_EOL;
}
0