結果
| 問題 | No.1178 Can you draw a Circle? |
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2020-08-21 22:09:16 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 54 ms / 2,000 ms |
| + 433µs | |
| コード長 | 506 bytes |
| 記録 | |
| コンパイル時間 | 1,329 ms |
| コンパイル使用メモリ | 86,020 KB |
| 実行使用メモリ | 45,236 KB |
| 最終ジャッジ日時 | 2026-09-20 15:41:37 |
| 合計ジャッジ時間 | 3,454 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
double c = sc.nextInt();
double d = sc.nextInt();
double e = sc.nextInt();
double f = sc.nextInt();
sc.close();
if (a != b) {
System.out.println(0);
return;
}
c /= a;
d /= a;
f = (f - e) / a;
c = c * c / 4;
d = d * d / 4;
f = f + c + d;
System.out.println(Math.sqrt(f));
}
}
ks2m