結果

問題 No.538 N.G.S.
ユーザー tentententen
提出日時 2020-09-10 08:31:41
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 354 bytes
コンパイル時間 3,533 ms
コンパイル使用メモリ 71,276 KB
実行使用メモリ 56,476 KB
最終ジャッジ日時 2023-08-23 12:00:50
合計ジャッジ時間 12,918 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,760 KB
testcase_01 AC 123 ms
55,504 KB
testcase_02 AC 124 ms
55,636 KB
testcase_03 AC 123 ms
55,852 KB
testcase_04 WA -
testcase_05 AC 123 ms
55,656 KB
testcase_06 AC 124 ms
55,528 KB
testcase_07 AC 122 ms
55,716 KB
testcase_08 AC 124 ms
55,904 KB
testcase_09 WA -
testcase_10 AC 122 ms
55,772 KB
testcase_11 AC 123 ms
54,068 KB
testcase_12 AC 122 ms
55,908 KB
testcase_13 AC 121 ms
55,972 KB
testcase_14 AC 122 ms
56,072 KB
testcase_15 AC 122 ms
55,776 KB
testcase_16 WA -
testcase_17 AC 121 ms
55,684 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 122 ms
55,752 KB
testcase_21 AC 122 ms
55,764 KB
testcase_22 AC 125 ms
55,776 KB
testcase_23 AC 124 ms
55,752 KB
testcase_24 AC 122 ms
55,472 KB
testcase_25 AC 124 ms
55,472 KB
testcase_26 AC 123 ms
55,728 KB
testcase_27 AC 122 ms
55,728 KB
testcase_28 AC 122 ms
55,720 KB
testcase_29 AC 122 ms
55,508 KB
testcase_30 AC 123 ms
56,112 KB
testcase_31 AC 122 ms
55,776 KB
testcase_32 AC 122 ms
55,744 KB
testcase_33 AC 123 ms
55,800 KB
testcase_34 AC 122 ms
55,896 KB
testcase_35 AC 122 ms
55,724 KB
testcase_36 AC 123 ms
56,296 KB
testcase_37 AC 123 ms
55,900 KB
testcase_38 AC 123 ms
56,056 KB
testcase_39 AC 124 ms
55,844 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 122 ms
55,728 KB
testcase_45 AC 125 ms
56,072 KB
testcase_46 AC 123 ms
55,728 KB
testcase_47 AC 123 ms
55,664 KB
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 AC 122 ms
55,500 KB
testcase_53 WA -
testcase_54 WA -
権限があれば一括ダウンロードができます

ソースコード

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) / (b - a);
    	double r = (b - d) / a;
    	long ans = (long)(c * r + d);
    	System.out.println(ans);
    }
}
0