結果

問題 No.353 ヘイトプラス
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-17 02:00:50
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 227 bytes
コンパイル時間 4,786 ms
コンパイル使用メモリ 72,028 KB
実行使用メモリ 56,212 KB
最終ジャッジ日時 2023-09-06 01:28:50
合計ジャッジ時間 6,344 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 128 ms
55,868 KB
testcase_02 AC 128 ms
56,088 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 130 ms
55,712 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No353 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		System.out.println((A*A - B*B) / (A-B));
	}
}
0