結果

問題 No.172 UFOを捕まえろ
ユーザー ルッツファンルッツファン
提出日時 2015-11-28 01:54:09
言語 Java19
(openjdk 21)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 748 bytes
コンパイル時間 4,270 ms
コンパイル使用メモリ 71,432 KB
実行使用メモリ 49,888 KB
最終ジャッジ日時 2023-08-05 17:32:04
合計ジャッジ時間 5,520 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,308 KB
testcase_01 AC 42 ms
49,888 KB
testcase_02 AC 43 ms
49,240 KB
testcase_03 AC 42 ms
49,556 KB
testcase_04 AC 43 ms
49,732 KB
testcase_05 AC 42 ms
49,256 KB
testcase_06 AC 43 ms
49,368 KB
testcase_07 AC 43 ms
49,300 KB
testcase_08 AC 43 ms
49,408 KB
testcase_09 AC 44 ms
49,364 KB
testcase_10 AC 43 ms
49,236 KB
testcase_11 AC 42 ms
49,324 KB
testcase_12 AC 42 ms
49,420 KB
testcase_13 AC 41 ms
49,660 KB
testcase_14 AC 41 ms
49,416 KB
testcase_15 AC 42 ms
49,284 KB
testcase_16 AC 42 ms
49,444 KB
testcase_17 AC 43 ms
49,484 KB
testcase_18 AC 42 ms
49,396 KB
testcase_19 AC 42 ms
49,352 KB
testcase_20 AC 42 ms
49,284 KB
testcase_21 AC 42 ms
49,468 KB
testcase_22 AC 44 ms
49,732 KB
testcase_23 AC 44 ms
49,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class yukicoder06 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		
			try {
				tes = br.readLine();
			} catch (IOException e) {
				// TODO 自動生成された catch ブロック
				e.printStackTrace();
			}
			
			String[] tew = tes.split(" ");
			long x1 = Long.parseLong(tew[0]);
			long x2 = Long.parseLong(tew[1]);
			long x3 = Long.parseLong(tew[2]);
			
			x1 = Math.abs(x1);
			x2 = Math.abs(x2);
			x3 = Math.abs(x3);
			
			
			System.out.println((long)(((x1+x2)+2d*x3*Math.sin(Math.toRadians(45d))+1)));
			
			
	}

}
0