結果

問題 No.172 UFOを捕まえろ
ユーザー ルッツファンルッツファン
提出日時 2015-11-28 01:54:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 748 bytes
コンパイル時間 3,334 ms
コンパイル使用メモリ 74,732 KB
実行使用メモリ 37,252 KB
最終ジャッジ日時 2024-04-23 14:23:14
合計ジャッジ時間 5,157 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
37,020 KB
testcase_01 AC 53 ms
36,772 KB
testcase_02 AC 52 ms
36,644 KB
testcase_03 AC 53 ms
36,984 KB
testcase_04 AC 53 ms
36,908 KB
testcase_05 AC 53 ms
36,936 KB
testcase_06 AC 52 ms
36,936 KB
testcase_07 AC 53 ms
37,132 KB
testcase_08 AC 52 ms
37,220 KB
testcase_09 AC 52 ms
37,004 KB
testcase_10 AC 53 ms
36,644 KB
testcase_11 AC 54 ms
37,092 KB
testcase_12 AC 53 ms
36,988 KB
testcase_13 AC 53 ms
37,072 KB
testcase_14 AC 54 ms
37,236 KB
testcase_15 AC 52 ms
36,720 KB
testcase_16 AC 52 ms
36,976 KB
testcase_17 AC 54 ms
36,996 KB
testcase_18 AC 52 ms
36,920 KB
testcase_19 AC 50 ms
36,904 KB
testcase_20 AC 53 ms
37,216 KB
testcase_21 AC 53 ms
36,732 KB
testcase_22 AC 52 ms
37,228 KB
testcase_23 AC 52 ms
37,252 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