結果

問題 No.538 N.G.S.
ユーザー takeya_okinotakeya_okino
提出日時 2017-09-23 17:13:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 3,918 ms
コンパイル使用メモリ 73,736 KB
実行使用メモリ 57,736 KB
最終ジャッジ日時 2023-10-25 05:00:01
合計ジャッジ時間 11,123 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
57,564 KB
testcase_01 AC 117 ms
57,360 KB
testcase_02 AC 108 ms
56,320 KB
testcase_03 AC 119 ms
57,304 KB
testcase_04 AC 115 ms
57,388 KB
testcase_05 AC 119 ms
57,540 KB
testcase_06 AC 122 ms
57,484 KB
testcase_07 AC 125 ms
57,712 KB
testcase_08 AC 123 ms
57,452 KB
testcase_09 AC 111 ms
56,300 KB
testcase_10 AC 123 ms
57,348 KB
testcase_11 AC 125 ms
57,736 KB
testcase_12 AC 113 ms
56,288 KB
testcase_13 AC 121 ms
57,536 KB
testcase_14 AC 121 ms
57,580 KB
testcase_15 AC 120 ms
57,388 KB
testcase_16 AC 121 ms
57,336 KB
testcase_17 AC 119 ms
57,492 KB
testcase_18 AC 121 ms
57,416 KB
testcase_19 AC 122 ms
57,152 KB
testcase_20 AC 115 ms
57,376 KB
testcase_21 AC 107 ms
55,700 KB
testcase_22 AC 120 ms
57,500 KB
testcase_23 AC 118 ms
57,644 KB
testcase_24 AC 117 ms
57,532 KB
testcase_25 AC 119 ms
57,388 KB
testcase_26 AC 118 ms
57,496 KB
testcase_27 AC 123 ms
57,480 KB
testcase_28 AC 120 ms
57,348 KB
testcase_29 AC 122 ms
57,400 KB
testcase_30 AC 118 ms
57,492 KB
testcase_31 AC 120 ms
57,296 KB
testcase_32 AC 120 ms
57,252 KB
testcase_33 AC 125 ms
57,308 KB
testcase_34 AC 125 ms
57,460 KB
testcase_35 AC 111 ms
56,244 KB
testcase_36 AC 124 ms
55,696 KB
testcase_37 AC 119 ms
57,608 KB
testcase_38 AC 122 ms
57,388 KB
testcase_39 AC 123 ms
57,284 KB
testcase_40 AC 127 ms
57,400 KB
testcase_41 AC 118 ms
57,256 KB
testcase_42 AC 116 ms
57,376 KB
testcase_43 AC 117 ms
57,596 KB
testcase_44 AC 118 ms
57,288 KB
testcase_45 AC 111 ms
56,296 KB
testcase_46 AC 122 ms
57,312 KB
testcase_47 AC 122 ms
57,604 KB
testcase_48 AC 109 ms
56,276 KB
testcase_49 AC 119 ms
57,236 KB
testcase_50 AC 123 ms
57,540 KB
testcase_51 AC 125 ms
57,456 KB
testcase_52 AC 123 ms
57,588 KB
testcase_53 AC 120 ms
55,520 KB
testcase_54 AC 123 ms
55,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long b1 = sc.nextLong();
    long b2 = sc.nextLong();
    long b3 = sc.nextLong();
    long ans = (long)((b2 * b3 - b3 * b3 - b2 * b2 + b1 * b3) / (b1 - b2));
    System.out.println(ans);
  }
}
0