結果

問題 No.668 6.0*10^23
ユーザー tentententen
提出日時 2020-09-04 08:57:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 245 ms / 2,000 ms
コード長 487 bytes
コンパイル時間 2,227 ms
コンパイル使用メモリ 75,704 KB
実行使用メモリ 60,600 KB
最終ジャッジ日時 2023-08-16 12:29:17
合計ジャッジ時間 14,802 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 158 ms
56,584 KB
testcase_01 AC 234 ms
59,256 KB
testcase_02 AC 218 ms
57,416 KB
testcase_03 AC 206 ms
57,272 KB
testcase_04 AC 208 ms
57,356 KB
testcase_05 AC 178 ms
56,732 KB
testcase_06 AC 208 ms
56,900 KB
testcase_07 AC 157 ms
56,620 KB
testcase_08 AC 157 ms
56,684 KB
testcase_09 AC 158 ms
56,572 KB
testcase_10 AC 184 ms
57,068 KB
testcase_11 AC 233 ms
58,388 KB
testcase_12 AC 181 ms
56,536 KB
testcase_13 AC 237 ms
58,372 KB
testcase_14 AC 245 ms
58,776 KB
testcase_15 AC 174 ms
56,680 KB
testcase_16 AC 179 ms
56,856 KB
testcase_17 AC 233 ms
60,228 KB
testcase_18 AC 213 ms
56,832 KB
testcase_19 AC 179 ms
56,736 KB
testcase_20 AC 208 ms
58,696 KB
testcase_21 AC 207 ms
59,028 KB
testcase_22 AC 232 ms
60,600 KB
testcase_23 AC 222 ms
57,336 KB
testcase_24 AC 175 ms
56,884 KB
testcase_25 AC 233 ms
58,788 KB
testcase_26 AC 167 ms
57,216 KB
testcase_27 AC 216 ms
57,272 KB
testcase_28 AC 236 ms
58,596 KB
testcase_29 AC 209 ms
57,060 KB
testcase_30 AC 236 ms
58,720 KB
testcase_31 AC 214 ms
56,824 KB
testcase_32 AC 176 ms
56,544 KB
testcase_33 AC 243 ms
58,680 KB
testcase_34 AC 184 ms
56,860 KB
testcase_35 AC 182 ms
56,728 KB
testcase_36 AC 220 ms
58,640 KB
testcase_37 AC 232 ms
58,352 KB
testcase_38 AC 209 ms
56,920 KB
testcase_39 AC 214 ms
57,456 KB
testcase_40 AC 234 ms
58,604 KB
testcase_41 AC 236 ms
58,100 KB
testcase_42 AC 211 ms
57,500 KB
testcase_43 AC 237 ms
58,504 KB
testcase_44 AC 244 ms
57,908 KB
testcase_45 AC 158 ms
56,708 KB
testcase_46 AC 159 ms
56,632 KB
testcase_47 AC 159 ms
56,936 KB
testcase_48 AC 157 ms
56,448 KB
testcase_49 AC 157 ms
56,764 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