結果
| 問題 | 
                            No.138 化石のバージョン
                             | 
                    
| コンテスト | |
| ユーザー | 
                             AAAR15
                         | 
                    
| 提出日時 | 2015-06-22 17:44:37 | 
| 言語 | PHP  (843.2)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 47 ms / 5,000 ms | 
| コード長 | 417 bytes | 
| コンパイル時間 | 256 ms | 
| コンパイル使用メモリ | 32,272 KB | 
| 実行使用メモリ | 32,400 KB | 
| 最終ジャッジ日時 | 2024-12-29 13:24:27 | 
| 合計ジャッジ時間 | 2,966 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 33 | 
コンパイルメッセージ
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]/1000;
$patch = $str[2]/1000000;
$str1 = explode(".", $target);
$major1 = $str1[0];
$minor1 = $str1[1]/1000;
$patch1 = $str1[2]/1000000;
$hantei = $major + $minor + $patch;
$target = $major1 + $minor1 + $patch1;
if ($hantei - $target < 0) {
    echo "NO\n";
} else {
    echo "YES\n";
}
            
            
            
        
            
AAAR15