結果

問題 No.353 ヘイトプラス
ユーザー mits58mits58
提出日時 2016-07-02 01:01:30
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 245 bytes
コンパイル時間 2,079 ms
コンパイル使用メモリ 74,288 KB
実行使用メモリ 54,268 KB
最終ジャッジ日時 2024-04-20 06:42:55
合計ジャッジ時間 4,093 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
41,404 KB
testcase_01 AC 112 ms
41,460 KB
testcase_02 AC 114 ms
41,144 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 115 ms
41,320 KB
testcase_06 AC 98 ms
41,184 KB
testcase_07 AC 113 ms
41,364 KB
testcase_08 AC 102 ms
40,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			long a=sc.nextLong();
			long b=sc.nextLong();
			System.out.println((a*a-b*b)/(a-b));
		}
	}
}
0