結果
| 問題 | No.538 N.G.S. |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-30 22:51:02 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 699 bytes |
| 記録 | |
| コンパイル時間 | 2,810 ms |
| コンパイル使用メモリ | 82,172 KB |
| 実行使用メモリ | 46,668 KB |
| 最終ジャッジ日時 | 2026-04-12 03:41:36 |
| 合計ジャッジ時間 | 7,403 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 51 |
ソースコード
import java.io.*;
import java.util.*;
public class Main_yukicoder538 {
private static Scanner sc;
private static Printer pr;
private static void solve() {
long b1 = sc.nextInt();
long b2 = sc.nextInt();
long b3 = sc.nextInt();
long r1 = b2 - b3;
long r2 = b1 - b2;
long d1 = b3 * b1 - b2 * b2;
// long d2 = b2;
long d4 = (r1 * b3 + d1) / r2;
pr.println(d4);
}
// ---------------------------------------------------
public static void main(String[] args) {
sc = new Scanner(System.in);
pr = new Printer(System.out);
solve();
pr.close();
sc.close();
}
private static class Printer extends PrintWriter {
Printer(PrintStream out) {
super(out);
}
}
}