結果
問題 |
No.538 N.G.S.
|
ユーザー |
![]() |
提出日時 | 2018-02-16 20:29:21 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 359 bytes |
コンパイル時間 | 3,174 ms |
コンパイル使用メモリ | 74,152 KB |
実行使用メモリ | 56,716 KB |
最終ジャッジ日時 | 2024-06-22 04:12:31 |
合計ジャッジ時間 | 11,899 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 WA * 29 |
ソースコード
import java.util.Scanner; public class No538 { 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 rbunbo,rbunshi,d; rbunbo = b2 - b1; rbunshi = b3 - b2; d = b2 - b1 * rbunshi / rbunbo; System.out.println(b3 * rbunshi / rbunbo + d); } }