結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー | aya |
提出日時 | 2019-08-02 14:35:11 |
言語 | PHP (8.3.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 398 ms |
コンパイル使用メモリ | 18,624 KB |
実行使用メモリ | 19,016 KB |
最終ジャッジ日時 | 2023-09-18 18:14:29 |
合計ジャッジ時間 | 918 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
18,784 KB |
testcase_01 | WA | - |
testcase_02 | AC | 15 ms
18,716 KB |
testcase_03 | AC | 15 ms
18,768 KB |
testcase_04 | AC | 15 ms
18,532 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 % 80 ==0){ $input="ikisugi"; }elseif($input % 10 ==0){ $input="sugi"; }elseif($input % 8 ==0){ $input="iki"; }else{ $input=$input/3; } echo $input."\n"; }