結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー tentententen
提出日時 2021-03-06 14:08:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 347 bytes
コンパイル時間 1,780 ms
コンパイル使用メモリ 74,200 KB
実行使用メモリ 54,352 KB
最終ジャッジ日時 2024-04-17 03:14:03
合計ジャッジ時間 5,050 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
53,972 KB
testcase_01 AC 107 ms
54,068 KB
testcase_02 AC 100 ms
53,956 KB
testcase_03 AC 91 ms
52,920 KB
testcase_04 AC 100 ms
53,512 KB
testcase_05 AC 100 ms
54,060 KB
testcase_06 AC 101 ms
54,124 KB
testcase_07 AC 104 ms
53,880 KB
testcase_08 AC 104 ms
54,352 KB
testcase_09 AC 102 ms
53,036 KB
testcase_10 AC 107 ms
53,804 KB
testcase_11 AC 94 ms
53,028 KB
testcase_12 AC 101 ms
53,904 KB
testcase_13 AC 99 ms
53,920 KB
testcase_14 AC 103 ms
54,168 KB
testcase_15 AC 103 ms
53,928 KB
testcase_16 AC 103 ms
54,180 KB
testcase_17 AC 101 ms
53,912 KB
testcase_18 AC 112 ms
53,972 KB
testcase_19 AC 102 ms
53,824 KB
testcase_20 AC 100 ms
54,004 KB
testcase_21 AC 100 ms
54,276 KB
testcase_22 AC 100 ms
53,972 KB
testcase_23 AC 104 ms
53,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if (s.charAt(0) == '-' || s.length() <= 2) {
            System.out.println(0);
        } else {
            System.out.println(s.substring(0, s.length() - 2));
        }
    }
}
0