結果

問題 No.383 レーティング
ユーザー takoshi186takoshi186
提出日時 2016-08-01 14:45:56
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 252 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 30,996 KB
実行使用メモリ 31,304 KB
最終ジャッジ日時 2024-04-24 13:29:55
合計ジャッジ時間 1,321 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
31,044 KB
testcase_01 AC 41 ms
30,932 KB
testcase_02 AC 41 ms
31,304 KB
testcase_03 AC 42 ms
30,920 KB
testcase_04 AC 41 ms
30,960 KB
testcase_05 AC 41 ms
31,212 KB
testcase_06 AC 40 ms
31,204 KB
testcase_07 AC 37 ms
31,064 KB
testcase_08 AC 38 ms
31,008 KB
testcase_09 AC 38 ms
30,964 KB
testcase_10 AC 36 ms
31,196 KB
testcase_11 AC 36 ms
30,840 KB
testcase_12 AC 36 ms
31,112 KB
testcase_13 AC 38 ms
30,992 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    // $text = "1350 1350";
    // list( $a, $b ) = explode( " ", $text);
    list( $a, $b ) = explode( " ", trim(fgets(STDIN)));
    
    $res = $b -$a;
    
    if( 0 < $res ){
        echo "+".$res;
    }else{
        echo $res;        
    }
0