結果
問題 |
No.1415 100の倍数かつ正整数(1)
|
ユーザー |
|
提出日時 | 2021-03-07 05:37:00 |
言語 | Scala(Beta) (3.6.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 9,660 ms |
コンパイル使用メモリ | 252,572 KB |
実行使用メモリ | 63,344 KB |
最終ジャッジ日時 | 2024-10-08 23:04:35 |
合計ジャッジ時間 | 32,933 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 WA * 1 |
ソースコード
import java.util.Scanner object Main extends App { val sc = new Scanner(System.in) def solve(n: String): String = { if(n.startsWith("-") || n.length < 2){ "0" } else { n.substring(0, n.length - 2) } } val n = sc.next print(solve(n)) }