結果
| 問題 |
No.538 N.G.S.
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-30 22:51:02 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 131 ms / 2,000 ms |
| コード長 | 699 bytes |
| コンパイル時間 | 3,549 ms |
| コンパイル使用メモリ | 74,840 KB |
| 実行使用メモリ | 54,736 KB |
| 最終ジャッジ日時 | 2024-09-24 23:48:34 |
| 合計ジャッジ時間 | 11,752 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
}
}