結果

問題 No.668 6.0*10^23
ユーザー tentententen
提出日時 2023-02-15 15:49:23
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 1,691 bytes
コンパイル時間 2,560 ms
コンパイル使用メモリ 92,848 KB
実行使用メモリ 56,164 KB
最終ジャッジ日時 2023-09-25 00:41:48
合計ジャッジ時間 10,311 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 116 ms
54,248 KB
testcase_02 AC 107 ms
54,144 KB
testcase_03 AC 96 ms
53,732 KB
testcase_04 AC 97 ms
53,668 KB
testcase_05 AC 94 ms
52,672 KB
testcase_06 AC 99 ms
52,760 KB
testcase_07 AC 81 ms
53,516 KB
testcase_08 AC 84 ms
52,576 KB
testcase_09 AC 84 ms
53,868 KB
testcase_10 WA -
testcase_11 AC 116 ms
54,248 KB
testcase_12 AC 97 ms
53,660 KB
testcase_13 WA -
testcase_14 AC 114 ms
54,528 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 113 ms
56,164 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 107 ms
53,944 KB
testcase_21 AC 107 ms
54,104 KB
testcase_22 WA -
testcase_23 AC 113 ms
54,096 KB
testcase_24 AC 92 ms
53,256 KB
testcase_25 AC 119 ms
54,008 KB
testcase_26 AC 83 ms
54,064 KB
testcase_27 AC 116 ms
54,152 KB
testcase_28 AC 122 ms
52,268 KB
testcase_29 AC 95 ms
53,720 KB
testcase_30 AC 124 ms
54,088 KB
testcase_31 AC 107 ms
54,076 KB
testcase_32 AC 90 ms
52,680 KB
testcase_33 AC 108 ms
52,928 KB
testcase_34 AC 96 ms
53,672 KB
testcase_35 AC 95 ms
51,452 KB
testcase_36 AC 104 ms
53,988 KB
testcase_37 AC 116 ms
54,200 KB
testcase_38 AC 101 ms
52,964 KB
testcase_39 AC 104 ms
52,864 KB
testcase_40 AC 123 ms
54,180 KB
testcase_41 WA -
testcase_42 AC 97 ms
52,884 KB
testcase_43 AC 115 ms
54,136 KB
testcase_44 WA -
testcase_45 AC 79 ms
53,572 KB
testcase_46 AC 82 ms
53,596 KB
testcase_47 AC 81 ms
53,700 KB
testcase_48 WA -
testcase_49 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
import java.util.stream.*;

public class Main {
    static final int MOD = 17;
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner();
        char[] inputs = sc.next().toCharArray();
        int a = inputs[0] - '0';
        int b = inputs[1] - '0';
        if (inputs[2] >= '5') {
            b++;
        }
        System.out.println(a + "." + b + "*10^" + (inputs.length - 1));
    }
}
class Utilities {
    static String arrayToLineString(Object[] arr) {
        return Arrays.stream(arr).map(x -> x.toString()).collect(Collectors.joining("\n"));
    }
    
    static String arrayToLineString(int[] arr) {
        return String.join("\n", Arrays.stream(arr).mapToObj(String::valueOf).toArray(String[]::new));
    }
}
class Scanner {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer("");
    StringBuilder sb = new StringBuilder();
    
    public Scanner() throws Exception {
        
    }
    
    public int nextInt() throws Exception {
        return Integer.parseInt(next());
    }
    
    public long nextLong() throws Exception {
        return Long.parseLong(next());
    }
    
    public double nextDouble() throws Exception {
        return Double.parseDouble(next());
    }
    
    public int[] nextIntArray() throws Exception {
        return Stream.of(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
    }
    
    public String next() throws Exception {
        while (!st.hasMoreTokens()) {
            st = new StringTokenizer(br.readLine());
        }
        return st.nextToken();
    }
    
}
0