結果
問題 | No.98 円を描こう |
ユーザー |
![]() |
提出日時 | 2014-12-12 16:04:22 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 134 ms / 5,000 ms |
コード長 | 383 bytes |
コンパイル時間 | 2,245 ms |
コンパイル使用メモリ | 73,972 KB |
実行使用メモリ | 41,740 KB |
最終ジャッジ日時 | 2024-06-11 21:01:00 |
合計ジャッジ時間 | 4,223 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
import java.math.*;import java.util.*;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);int x = sc.nextInt();int y = sc.nextInt();for(int i=1;;i++){if(i*1.0/2>Math.sqrt(x*x*1.0+y*y*1.0)){System.out.println(i);return;}}}}