結果
| 問題 | No.9001 標準入出力の練習問題(テスト用) |
| ユーザー |
Ruizi_Luigi
|
| 提出日時 | 2015-07-23 18:32:09 |
| 言語 | PHP (8.5.4) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 37,408 KB |
| 実行使用メモリ | 38,000 KB |
| 最終ジャッジ日時 | 2026-03-30 06:18:27 |
| 合計ジャッジ時間 | 541 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 2 |
コンパイルメッセージ
PHP Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 5 Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 5 PHP Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 5 Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 5 No syntax errors detected in Main.php
ソースコード
<?php
//一行分を読み込む, 空白で分割してそれぞれ$aと$bの変数に入れる
list($a, $b) = explode(" ", trim(fgets(STDIN)));
$c = (integer)$a + (integer)$b;
//2行目を読み込む
$S = trim(fgets(STDIN));
//標準出力に書き出す。
printf("{$c} {$S}\n");
Ruizi_Luigi