結果

問題 No.538 N.G.S.
ユーザー tentententen
提出日時 2020-09-10 08:33:24
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 2,986 ms
コンパイル使用メモリ 70,736 KB
実行使用メモリ 57,892 KB
最終ジャッジ日時 2023-08-23 12:03:19
合計ジャッジ時間 11,973 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,428 KB
testcase_01 AC 120 ms
56,036 KB
testcase_02 AC 118 ms
56,040 KB
testcase_03 AC 119 ms
55,824 KB
testcase_04 WA -
testcase_05 AC 122 ms
55,836 KB
testcase_06 AC 123 ms
55,864 KB
testcase_07 AC 123 ms
55,772 KB
testcase_08 AC 121 ms
55,632 KB
testcase_09 AC 121 ms
55,892 KB
testcase_10 AC 122 ms
55,632 KB
testcase_11 AC 120 ms
55,572 KB
testcase_12 AC 125 ms
55,536 KB
testcase_13 AC 120 ms
55,528 KB
testcase_14 AC 120 ms
56,096 KB
testcase_15 AC 122 ms
55,856 KB
testcase_16 AC 121 ms
56,000 KB
testcase_17 AC 120 ms
55,632 KB
testcase_18 AC 121 ms
56,120 KB
testcase_19 AC 123 ms
55,860 KB
testcase_20 AC 122 ms
55,600 KB
testcase_21 AC 122 ms
55,980 KB
testcase_22 AC 121 ms
55,624 KB
testcase_23 AC 122 ms
56,244 KB
testcase_24 AC 121 ms
55,812 KB
testcase_25 AC 123 ms
56,064 KB
testcase_26 AC 122 ms
55,792 KB
testcase_27 AC 121 ms
54,096 KB
testcase_28 AC 121 ms
55,788 KB
testcase_29 AC 121 ms
56,140 KB
testcase_30 AC 120 ms
55,716 KB
testcase_31 AC 121 ms
55,572 KB
testcase_32 AC 123 ms
55,988 KB
testcase_33 AC 124 ms
55,640 KB
testcase_34 AC 121 ms
55,596 KB
testcase_35 AC 122 ms
55,964 KB
testcase_36 AC 122 ms
56,480 KB
testcase_37 AC 122 ms
56,212 KB
testcase_38 AC 123 ms
55,536 KB
testcase_39 AC 121 ms
55,624 KB
testcase_40 AC 121 ms
55,672 KB
testcase_41 AC 122 ms
55,804 KB
testcase_42 AC 124 ms
55,640 KB
testcase_43 AC 122 ms
55,888 KB
testcase_44 AC 122 ms
57,892 KB
testcase_45 AC 122 ms
55,916 KB
testcase_46 AC 122 ms
55,424 KB
testcase_47 AC 121 ms
55,956 KB
testcase_48 WA -
testcase_49 AC 124 ms
56,000 KB
testcase_50 AC 123 ms
55,616 KB
testcase_51 AC 125 ms
55,660 KB
testcase_52 AC 123 ms
56,120 KB
testcase_53 AC 123 ms
56,096 KB
testcase_54 AC 123 ms
55,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long a = sc.nextInt();
    	long b = sc.nextInt();
    	long c = sc.nextInt();
    	double d = (b * b - a * c) / (double)(b - a);
    	double r = (b - d) / a;
    	long ans = (long)(c * r + d);
    	System.out.println(ans);
    }
}
0