結果

問題 No.311 z in FizzBuzzString
ユーザー しめはじめしめはじめ
提出日時 2019-06-06 12:06:18
言語 PHP
(8.3.4)
結果
AC  
実行時間 47 ms / 1,500 ms
コード長 207 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 32,744 KB
実行使用メモリ 32,472 KB
最終ジャッジ日時 2023-10-25 02:58:20
合計ジャッジ時間 1,167 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
32,472 KB
testcase_01 AC 44 ms
32,472 KB
testcase_02 AC 42 ms
32,472 KB
testcase_03 AC 42 ms
32,472 KB
testcase_04 AC 43 ms
32,472 KB
testcase_05 AC 42 ms
32,472 KB
testcase_06 AC 43 ms
32,472 KB
testcase_07 AC 43 ms
32,472 KB
testcase_08 AC 45 ms
32,472 KB
testcase_09 AC 42 ms
32,472 KB
testcase_10 AC 42 ms
32,472 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim( fgets( STDIN ) );
//3の倍数でアホになって
$aho = intdiv( $n, 3 );
//5の倍数で犬になります
$dog = intdiv( $n, 5 );
//オモロー!
printf( "%d\n", $aho * 2 + $dog * 2 );
0