結果
| 問題 | No.1415 100の倍数かつ正整数(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-07 05:37:36 |
| 言語 | Scala(Beta) (3.8.1) |
| 結果 |
AC
|
| 実行時間 | 471 ms / 2,000 ms |
| コード長 | 272 bytes |
| 記録 | |
| コンパイル時間 | 9,758 ms |
| コンパイル使用メモリ | 274,928 KB |
| 実行使用メモリ | 65,720 KB |
| 最終ジャッジ日時 | 2026-03-09 19:16:41 |
| 合計ジャッジ時間 | 21,490 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
import java.util.Scanner
object Main extends App {
val sc = new Scanner(System.in)
def solve(n: String): String = {
if(n.startsWith("-") || n.length < 3){
"0"
} else {
n.substring(0, n.length - 2)
}
}
val n = sc.next
print(solve(n))
}