結果

問題 No.668 6.0*10^23
ユーザー tentententen
提出日時 2020-09-04 08:57:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 229 ms / 2,000 ms
コード長 487 bytes
コンパイル時間 2,278 ms
コンパイル使用メモリ 86,688 KB
実行使用メモリ 45,124 KB
最終ジャッジ日時 2024-05-03 20:55:38
合計ジャッジ時間 12,798 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 146 ms
42,276 KB
testcase_01 AC 220 ms
44,204 KB
testcase_02 AC 200 ms
44,440 KB
testcase_03 AC 183 ms
42,848 KB
testcase_04 AC 181 ms
42,868 KB
testcase_05 AC 159 ms
42,420 KB
testcase_06 AC 200 ms
43,600 KB
testcase_07 AC 147 ms
42,540 KB
testcase_08 AC 143 ms
42,464 KB
testcase_09 AC 156 ms
42,332 KB
testcase_10 AC 157 ms
42,472 KB
testcase_11 AC 199 ms
43,384 KB
testcase_12 AC 174 ms
42,696 KB
testcase_13 AC 229 ms
45,124 KB
testcase_14 AC 216 ms
43,448 KB
testcase_15 AC 172 ms
43,756 KB
testcase_16 AC 175 ms
42,424 KB
testcase_17 AC 205 ms
43,368 KB
testcase_18 AC 211 ms
44,024 KB
testcase_19 AC 170 ms
42,672 KB
testcase_20 AC 181 ms
42,804 KB
testcase_21 AC 201 ms
43,804 KB
testcase_22 AC 211 ms
43,140 KB
testcase_23 AC 191 ms
43,028 KB
testcase_24 AC 149 ms
42,240 KB
testcase_25 AC 202 ms
43,320 KB
testcase_26 AC 174 ms
43,772 KB
testcase_27 AC 207 ms
43,060 KB
testcase_28 AC 207 ms
42,912 KB
testcase_29 AC 170 ms
42,708 KB
testcase_30 AC 205 ms
43,244 KB
testcase_31 AC 203 ms
44,044 KB
testcase_32 AC 166 ms
42,584 KB
testcase_33 AC 207 ms
43,336 KB
testcase_34 AC 160 ms
42,260 KB
testcase_35 AC 173 ms
42,588 KB
testcase_36 AC 204 ms
43,184 KB
testcase_37 AC 208 ms
43,268 KB
testcase_38 AC 181 ms
42,664 KB
testcase_39 AC 199 ms
43,056 KB
testcase_40 AC 205 ms
43,380 KB
testcase_41 AC 198 ms
43,384 KB
testcase_42 AC 192 ms
43,808 KB
testcase_43 AC 216 ms
43,368 KB
testcase_44 AC 204 ms
43,356 KB
testcase_45 AC 131 ms
41,880 KB
testcase_46 AC 148 ms
42,176 KB
testcase_47 AC 132 ms
42,152 KB
testcase_48 AC 147 ms
42,684 KB
testcase_49 AC 151 ms
42,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
 	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String s = sc.next();
    	int length = s.length();
    	int num = Integer.parseInt(s.substring(0, 3));
    	long value = Math.round(num / 10.0);
    	if (value == 100) {
    	    value /= 10;
    	    length++;
    	}
    	long first = value / 10;
    	long second = value % 10;
    	System.out.println(first + "." + second + "*10^" + (length - 1));
	}
}
0