結果

問題 No.668 6.0*10^23
ユーザー 37zigen37zigen
提出日時 2018-03-23 23:11:42
言語 Java19
(openjdk 21)
結果
AC  
実行時間 248 ms / 2,000 ms
コード長 728 bytes
コンパイル時間 2,732 ms
コンパイル使用メモリ 81,672 KB
実行使用メモリ 58,992 KB
最終ジャッジ日時 2023-09-12 17:37:38
合計ジャッジ時間 15,374 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 164 ms
57,104 KB
testcase_01 AC 238 ms
58,392 KB
testcase_02 AC 219 ms
55,464 KB
testcase_03 AC 213 ms
56,804 KB
testcase_04 AC 215 ms
58,608 KB
testcase_05 AC 184 ms
56,708 KB
testcase_06 AC 213 ms
57,276 KB
testcase_07 AC 164 ms
56,880 KB
testcase_08 AC 161 ms
56,848 KB
testcase_09 AC 162 ms
57,112 KB
testcase_10 AC 187 ms
56,688 KB
testcase_11 AC 242 ms
57,252 KB
testcase_12 AC 188 ms
57,028 KB
testcase_13 AC 234 ms
58,580 KB
testcase_14 AC 241 ms
58,160 KB
testcase_15 AC 181 ms
56,740 KB
testcase_16 AC 186 ms
56,800 KB
testcase_17 AC 236 ms
58,700 KB
testcase_18 AC 214 ms
56,648 KB
testcase_19 AC 185 ms
56,744 KB
testcase_20 AC 222 ms
57,064 KB
testcase_21 AC 219 ms
58,240 KB
testcase_22 AC 244 ms
58,992 KB
testcase_23 AC 221 ms
56,808 KB
testcase_24 AC 180 ms
56,696 KB
testcase_25 AC 248 ms
58,164 KB
testcase_26 AC 177 ms
56,788 KB
testcase_27 AC 221 ms
57,116 KB
testcase_28 AC 239 ms
58,368 KB
testcase_29 AC 214 ms
57,408 KB
testcase_30 AC 239 ms
56,852 KB
testcase_31 AC 217 ms
57,228 KB
testcase_32 AC 180 ms
56,784 KB
testcase_33 AC 243 ms
58,396 KB
testcase_34 AC 185 ms
57,028 KB
testcase_35 AC 185 ms
56,812 KB
testcase_36 AC 234 ms
57,424 KB
testcase_37 AC 240 ms
57,348 KB
testcase_38 AC 219 ms
56,888 KB
testcase_39 AC 219 ms
56,752 KB
testcase_40 AC 242 ms
58,692 KB
testcase_41 AC 242 ms
58,120 KB
testcase_42 AC 213 ms
57,196 KB
testcase_43 AC 238 ms
58,860 KB
testcase_44 AC 245 ms
58,644 KB
testcase_45 AC 162 ms
56,596 KB
testcase_46 AC 162 ms
56,816 KB
testcase_47 AC 157 ms
54,960 KB
testcase_48 AC 160 ms
57,024 KB
testcase_49 AC 161 ms
56,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main implements Runnable {
	public static void main(String[] args) {
		new Main().run();
	}

	long MOD = (long) (1e9 + 7);

	public void run() {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int a = val(S.charAt(0));
		int b = val(S.charAt(1));
		int c = val(S.charAt(2));
		int n = (a * 100 + b * 10 + c + 5) / 10;
		a = n / 10;
		b = n % 10;
		int p = S.length() - 1;
		if (a >= 10) {
			++p;
			b = a % 10;
			a = a / 10;
		}
		System.out.println(a + "." + b + "*10^" + p);
	}

	int val(char c) {
		return c - '0';
	}

	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}
}
0