結果

問題 No.538 N.G.S.
ユーザー mikan765
提出日時 2017-07-07 22:42:30
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 2,195 ms
コンパイル使用メモリ 74,100 KB
実行使用メモリ 46,192 KB
最終ジャッジ日時 2024-10-06 10:07:26
合計ジャッジ時間 10,199 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 22 WA * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.Arrays;

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