結果

問題 No.2607 Add One Digit
ユーザー fujitafujita
提出日時 2024-03-22 16:30:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 145 ms / 1,000 ms
コード長 332 bytes
コンパイル時間 2,327 ms
コンパイル使用メモリ 75,260 KB
実行使用メモリ 57,840 KB
最終ジャッジ日時 2024-03-22 16:30:52
合計ジャッジ時間 6,410 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
57,696 KB
testcase_01 AC 128 ms
57,664 KB
testcase_02 AC 129 ms
57,824 KB
testcase_03 AC 130 ms
56,112 KB
testcase_04 AC 129 ms
57,548 KB
testcase_05 AC 145 ms
57,828 KB
testcase_06 AC 129 ms
57,568 KB
testcase_07 AC 129 ms
57,824 KB
testcase_08 AC 131 ms
57,704 KB
testcase_09 AC 133 ms
57,676 KB
testcase_10 AC 133 ms
57,556 KB
testcase_11 AC 133 ms
57,832 KB
testcase_12 AC 134 ms
57,828 KB
testcase_13 AC 143 ms
57,804 KB
testcase_14 AC 130 ms
57,612 KB
testcase_15 AC 133 ms
57,824 KB
testcase_16 AC 133 ms
57,696 KB
testcase_17 AC 133 ms
57,804 KB
testcase_18 AC 134 ms
57,840 KB
testcase_19 AC 129 ms
57,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] inputs = sc.next().toCharArray();
        int length = inputs.length;
        System.out.println(9 * (length + 1));
    }
}
0