結果
問題 | No.1415 100の倍数かつ正整数(1) |
ユーザー | takutaku |
提出日時 | 2021-05-30 21:23:14 |
言語 | PHP (8.3.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 179 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 32,532 KB |
実行使用メモリ | 32,660 KB |
最終ジャッジ日時 | 2024-04-26 07:55:30 |
合計ジャッジ時間 | 1,719 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 42 ms
31,108 KB |
testcase_02 | AC | 37 ms
31,072 KB |
testcase_03 | AC | 36 ms
30,936 KB |
testcase_04 | AC | 37 ms
31,068 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 36 ms
31,140 KB |
testcase_10 | AC | 39 ms
30,688 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 39 ms
30,952 KB |
testcase_14 | WA | - |
testcase_15 | AC | 36 ms
31,008 KB |
testcase_16 | WA | - |
testcase_17 | AC | 39 ms
31,072 KB |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 37 ms
31,000 KB |
testcase_23 | WA | - |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $num = fgets(STDIN); $n = strlen($num); if($n < 3 || strpos($num,'-') !== false) { echo '0'; } else { echo substr($num,0,$n - 2); } ?>