結果

問題 No.143 豆
ユーザー sanaodesusanaodesu
提出日時 2021-05-20 22:34:26
言語 PHP
(8.3.4)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 154 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 31,204 KB
実行使用メモリ 31,492 KB
最終ジャッジ日時 2024-04-18 14:08:35
合計ジャッジ時間 1,565 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
31,024 KB
testcase_01 AC 41 ms
30,888 KB
testcase_02 AC 39 ms
31,092 KB
testcase_03 AC 41 ms
31,492 KB
testcase_04 AC 38 ms
31,100 KB
testcase_05 AC 39 ms
31,016 KB
testcase_06 AC 40 ms
31,032 KB
testcase_07 AC 40 ms
30,876 KB
testcase_08 AC 40 ms
31,192 KB
testcase_09 AC 41 ms
31,120 KB
testcase_10 AC 41 ms
31,076 KB
testcase_11 AC 39 ms
30,988 KB
testcase_12 AC 41 ms
31,100 KB
testcase_13 AC 40 ms
30,944 KB
testcase_14 AC 40 ms
31,000 KB
testcase_15 AC 40 ms
31,160 KB
testcase_16 AC 40 ms
31,020 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
fscanf(STDIN,"%d %d %d",$a,$b,$c);
$n=explode(' ',trim(fgets(STDIN)));

$sum=array_sum($n);

$res= ($a*$b)-$sum;

echo $res>=0? $res : -1 . PHP_EOL;
0