結果
| 問題 |
No.1027 U+1F4A0
|
| コンテスト | |
| ユーザー |
tetsuyana
|
| 提出日時 | 2020-04-24 20:28:27 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 526 bytes |
| コンパイル時間 | 4,689 ms |
| コンパイル使用メモリ | 74,816 KB |
| 実行使用メモリ | 41,396 KB |
| 最終ジャッジ日時 | 2024-10-15 02:06:42 |
| 合計ジャッジ時間 | 6,135 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 WA * 9 |
ソースコード
import java.util.*;
import java.io.PrintWriter;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;
public class Main {
public static void main(String[] args) {
int i,j;
Scanner sc = new Scanner(in);
int d1 = parseInt(sc.next());
int d2 = parseInt(sc.next());
sc.close();
int d12 = d1*d1;
int d22 = d2*d2;
int ans=0;
if(d12==d22 || d12==d2) {
ans = 4;
} else if(d22>d12&&d12>d2) {
ans=8;
}
out.println(ans);
}
}
tetsuyana