結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
mits58
|
| 提出日時 | 2016-06-05 17:47:54 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 397 bytes |
| コンパイル時間 | 2,234 ms |
| コンパイル使用メモリ | 76,420 KB |
| 実行使用メモリ | 56,052 KB |
| 最終ジャッジ日時 | 2024-10-08 16:03:37 |
| 合計ジャッジ時間 | 8,086 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 33 |
ソースコード
import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
String[] s1=(sc.next()).split(".");
String[] s2=(sc.next()).split(".");
int n=Integer.parseInt(s1[0]+s1[1]+s1[2]);
int o=Integer.parseInt(s2[0]+s2[1]+s2[2]);
if(n>o) System.out.println("YES");
else System.out.println("NO");
}
}
}
mits58