結果

問題 No.538 N.G.S.
ユーザー takeya_okino
提出日時 2017-09-23 17:09:17
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 2,339 ms
コンパイル使用メモリ 78,064 KB
実行使用メモリ 56,096 KB
最終ジャッジ日時 2024-11-14 04:14:16
合計ジャッジ時間 11,196 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 22 WA * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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