結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー ks2mks2m
提出日時 2021-03-05 22:16:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 2,431 ms
コンパイル使用メモリ 74,464 KB
実行使用メモリ 41,544 KB
最終ジャッジ日時 2024-04-16 09:51:35
合計ジャッジ時間 6,408 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
41,076 KB
testcase_01 AC 114 ms
40,100 KB
testcase_02 AC 125 ms
41,140 KB
testcase_03 AC 126 ms
41,436 KB
testcase_04 AC 126 ms
41,280 KB
testcase_05 AC 127 ms
41,300 KB
testcase_06 AC 125 ms
41,088 KB
testcase_07 AC 114 ms
40,228 KB
testcase_08 AC 128 ms
41,264 KB
testcase_09 AC 128 ms
40,960 KB
testcase_10 AC 129 ms
41,448 KB
testcase_11 AC 125 ms
41,076 KB
testcase_12 AC 124 ms
41,004 KB
testcase_13 AC 128 ms
41,544 KB
testcase_14 AC 130 ms
41,304 KB
testcase_15 AC 116 ms
40,292 KB
testcase_16 AC 127 ms
41,136 KB
testcase_17 AC 124 ms
41,036 KB
testcase_18 AC 125 ms
41,308 KB
testcase_19 AC 130 ms
41,128 KB
testcase_20 AC 116 ms
40,092 KB
testcase_21 AC 125 ms
40,932 KB
testcase_22 AC 126 ms
40,996 KB
testcase_23 AC 129 ms
41,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		sc.close();

		if (s.charAt(0) == '-') {
			System.out.println(0);
		} else if (s.length() < 3) {
			System.out.println(0);
		} else {
			System.out.println(s.substring(0, s.length() - 2));
		}
	}
}
0