結果
問題 |
No.1415 100の倍数かつ正整数(1)
|
ユーザー |
|
提出日時 | 2021-03-07 05:37:36 |
言語 | Scala(Beta) (3.6.2) |
結果 |
AC
|
実行時間 | 928 ms / 2,000 ms |
コード長 | 272 bytes |
コンパイル時間 | 7,934 ms |
コンパイル使用メモリ | 248,408 KB |
実行使用メモリ | 63,324 KB |
最終ジャッジ日時 | 2024-10-08 23:05:19 |
合計ジャッジ時間 | 30,023 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)) }