結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
37zigen
|
| 提出日時 | 2016-03-11 18:13:55 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 622 bytes |
| 記録 | |
| コンパイル時間 | 1,768 ms |
| コンパイル使用メモリ | 83,336 KB |
| 実行使用メモリ | 47,040 KB |
| 最終ジャッジ日時 | 2026-04-12 04:33:17 |
| 合計ジャッジ時間 | 6,202 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 WA * 6 |
ソースコード
import java.util.Date;
import java.util.Scanner;
public class Main{
public static void main(String[] args){
long exec_time=new Date().getTime();
Scanner sc=new Scanner(System.in);
String[] str1=sc.nextLine().split("\\.");
String[] str2=sc.nextLine().split("\\.");
String Str1="";
String Str2="";
for(int i=0;i<str1.length;i++){
Str1=str1[0]+str1[1]+str1[2];
Str2=str2[0]+str2[1]+str2[2];
}
int a=Integer.parseInt(Str1);
int b=Integer.parseInt(Str2);
if(a>=b){
System.out.println("YES");
}else{
System.out.println("NO");
}
System.err.println(new Date().getTime()-exec_time);
}
}
37zigen