結果

問題 No.538 N.G.S.
ユーザー mikan765mikan765
提出日時 2017-07-07 22:31:12
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 2,057 ms
コンパイル使用メモリ 73,976 KB
実行使用メモリ 42,088 KB
最終ジャッジ日時 2024-04-16 01:17:58
合計ジャッジ時間 11,668 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
41,776 KB
testcase_01 AC 141 ms
42,088 KB
testcase_02 AC 150 ms
41,672 KB
testcase_03 AC 143 ms
41,424 KB
testcase_04 AC 145 ms
41,636 KB
testcase_05 AC 148 ms
41,676 KB
testcase_06 AC 151 ms
41,824 KB
testcase_07 AC 157 ms
41,844 KB
testcase_08 AC 154 ms
41,828 KB
testcase_09 AC 151 ms
41,496 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 148 ms
41,560 KB
testcase_13 AC 142 ms
41,520 KB
testcase_14 AC 145 ms
41,820 KB
testcase_15 AC 141 ms
41,688 KB
testcase_16 AC 147 ms
41,948 KB
testcase_17 AC 146 ms
41,816 KB
testcase_18 AC 148 ms
41,772 KB
testcase_19 AC 156 ms
42,012 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 144 ms
41,784 KB
testcase_29 AC 146 ms
41,840 KB
testcase_30 AC 148 ms
41,800 KB
testcase_31 AC 151 ms
41,788 KB
testcase_32 AC 153 ms
42,048 KB
testcase_33 AC 153 ms
41,744 KB
testcase_34 AC 150 ms
41,876 KB
testcase_35 AC 142 ms
41,776 KB
testcase_36 AC 145 ms
41,860 KB
testcase_37 AC 144 ms
41,344 KB
testcase_38 AC 144 ms
41,772 KB
testcase_39 AC 145 ms
41,432 KB
testcase_40 AC 142 ms
41,624 KB
testcase_41 AC 145 ms
41,904 KB
testcase_42 AC 148 ms
41,752 KB
testcase_43 AC 152 ms
41,648 KB
testcase_44 AC 153 ms
41,816 KB
testcase_45 AC 149 ms
41,704 KB
testcase_46 AC 151 ms
41,780 KB
testcase_47 AC 149 ms
41,888 KB
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 148 ms
41,664 KB
testcase_52 AC 141 ms
40,764 KB
testcase_53 WA -
testcase_54 AC 142 ms
41,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		double a1 = sc.nextDouble();
		int a2 = sc.nextInt();
		int a3 = sc.nextInt();
		double r =(a3-a2)/(a2-a1);
		double d = a2-r*a1;
		System.out.println((int)(a3*r+d));
	}
}
0