結果

問題 No.9003 小数誤差テスト(テスト用)
ユーザー tsunatama5tsunatama5
提出日時 2015-01-12 15:04:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 343 bytes
コンパイル時間 2,662 ms
コンパイル使用メモリ 71,216 KB
実行使用メモリ 49,728 KB
最終ジャッジ日時 2023-09-20 21:13:38
合計ジャッジ時間 3,663 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,392 KB
testcase_01 AC 43 ms
49,728 KB
testcase_02 AC 42 ms
49,236 KB
testcase_03 AC 44 ms
49,400 KB
testcase_04 AC 43 ms
49,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

class Test9002 {
	public static void main(String[] args) throws IOException {
		
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
		String s = r.readLine();
		double N = Double.parseDouble(s);
		
		System.out.println("decimal");
		double y;
		y = N * (1 + 0.0001);
		System.out.println(y);
	}
}
0