結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
AAAR15
|
| 提出日時 | 2015-06-22 17:42:38 |
| 言語 | PHP (843.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 412 bytes |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 32,528 KB |
| 実行使用メモリ | 32,528 KB |
| 最終ジャッジ日時 | 2024-07-07 16:30:29 |
| 合計ジャッジ時間 | 2,259 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 4 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$hantei = trim(fgets(STDIN));
$target = trim(fgets(STDIN));
$str = explode(".", $hantei);
$major = $str[0];
$minor = $str[1]/100;
$patch = $str[2]/10000;
$str1 = explode(".", $target);
$major1 = $str1[0];
$minor1 = $str1[1]/100;
$patch1 = $str1[2]/10000;
$hantei = $major + $minor + $patch;
$target = $major1 + $minor1 + $patch1;
if ($hantei - $target <= 0) {
echo "NO\n";
} else {
echo "YES\n";
}
AAAR15