結果

問題 No.508 超ゆとり教育
コンテスト
ユーザー PicklesSuperior
提出日時 2018-10-21 09:45:55
言語 PHP
(8.5.4)
コンパイル:
php -l _filename_
実行:
php _filename_
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 259 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 171 ms
コンパイル使用メモリ 36,532 KB
実行使用メモリ 36,780 KB
最終ジャッジ日時 2026-05-13 11:33:58
合計ジャッジ時間 1,257 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #
raw source code

<?php
    $input = trim(fgets(STDIN));
    #print($input . "\n");
    $square = ((float)$input)/3.0;
    #print($square . "\n");
    $ans = (int) sqrt((float)$square);
    if($ans == 0){
        print(1 . "\n");
    }else{
        print($ans . "\n");
    }
?>
0