結果

問題 No.542 1円玉と5円玉
ユーザー PicklesSuperiorPicklesSuperior
提出日時 2018-10-21 01:45:59
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 3,419 ms
コンパイル使用メモリ 30,928 KB
実行使用メモリ 31,556 KB
最終ジャッジ日時 2024-04-29 20:06:27
合計ジャッジ時間 4,152 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
31,244 KB
testcase_01 AC 38 ms
31,372 KB
testcase_02 AC 37 ms
31,204 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 37 ms
31,336 KB
testcase_06 AC 38 ms
31,284 KB
testcase_07 AC 38 ms
31,228 KB
testcase_08 AC 39 ms
31,112 KB
testcase_09 AC 38 ms
31,200 KB
testcase_10 AC 39 ms
31,404 KB
testcase_11 AC 42 ms
31,172 KB
testcase_12 AC 41 ms
31,244 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    $input = preg_split('/ /',fgets(STDIN));
    $one = $input[0];
    $five = $input[1];
    $ans;

    for($i=0;$i<$five;$i++){
        for($j=0;$j<=$one;$j++){
            $ans = $i*5+$j;
            if($ans != 0)print($ans . "\n");
            if($j==4) break;
        }
    }
    for($i=0;$i<=$one;$i++){
        print($five*5+$i . "\n");
    }
    
?>
0