結果
問題 |
No.508 超ゆとり教育
|
ユーザー |
![]() |
提出日時 | 2018-10-21 09:44:32 |
言語 | PHP (843.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 177 ms |
コンパイル使用メモリ | 30,764 KB |
実行使用メモリ | 31,092 KB |
最終ジャッジ日時 | 2024-11-19 03:16:56 |
合計ジャッジ時間 | 1,267 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 WA * 1 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $input = trim(fgets(STDIN)); #print($input . "\n"); $square = ((float)$input)/3.0; #print($square . "\n"); $ans = sqrt((float)$square); if($ans == 0){ print(1 . "\n"); }else{ print((int)$ans . "\n"); } ?>