結果
| 問題 |
No.1415 100の倍数かつ正整数(1)
|
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2021-03-05 22:16:20 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 147 ms / 2,000 ms |
| コード長 | 370 bytes |
| コンパイル時間 | 2,478 ms |
| コンパイル使用メモリ | 74,044 KB |
| 実行使用メモリ | 41,448 KB |
| 最終ジャッジ日時 | 2024-10-07 02:28:45 |
| 合計ジャッジ時間 | 6,857 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
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));
}
}
}
ks2m