結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー | aya |
提出日時 | 2019-08-02 14:36:16 |
言語 | PHP (8.3.4) |
結果 |
AC
|
実行時間 | 17 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 43 ms |
コンパイル使用メモリ | 18,432 KB |
実行使用メモリ | 18,816 KB |
最終ジャッジ日時 | 2023-09-18 18:14:37 |
合計ジャッジ時間 | 548 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 14 ms
18,816 KB |
testcase_01 | AC | 14 ms
18,556 KB |
testcase_02 | AC | 15 ms
18,752 KB |
testcase_03 | AC | 17 ms
18,620 KB |
testcase_04 | AC | 16 ms
18,760 KB |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $num=(int)trim(fgets(STDIN)); for($i=1;$i<=$num;$i++){ $input=(int)trim(fgets(STDIN)); if($input % 40 ==0){ $input="ikisugi"; }elseif($input % 10 ==0){ $input="sugi"; }elseif($input % 8 ==0){ $input="iki"; }else{ $input=$input/3; } echo $input."\n"; }