結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー 👑 yumechiyumechi
提出日時 2021-03-07 05:37:00
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 10,335 ms
コンパイル使用メモリ 259,976 KB
実行使用メモリ 65,276 KB
最終ジャッジ日時 2024-04-17 08:15:52
合計ジャッジ時間 33,850 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 914 ms
65,068 KB
testcase_01 AC 904 ms
65,108 KB
testcase_02 AC 898 ms
64,960 KB
testcase_03 AC 909 ms
65,216 KB
testcase_04 AC 915 ms
65,156 KB
testcase_05 AC 914 ms
64,996 KB
testcase_06 WA -
testcase_07 AC 911 ms
65,240 KB
testcase_08 AC 888 ms
65,232 KB
testcase_09 AC 911 ms
65,220 KB
testcase_10 AC 905 ms
65,176 KB
testcase_11 AC 910 ms
65,088 KB
testcase_12 AC 909 ms
64,996 KB
testcase_13 AC 915 ms
65,116 KB
testcase_14 AC 915 ms
65,124 KB
testcase_15 AC 908 ms
65,144 KB
testcase_16 AC 913 ms
65,116 KB
testcase_17 AC 899 ms
65,084 KB
testcase_18 AC 887 ms
64,960 KB
testcase_19 AC 915 ms
64,904 KB
testcase_20 AC 908 ms
64,968 KB
testcase_21 AC 909 ms
65,276 KB
testcase_22 AC 907 ms
65,036 KB
testcase_23 AC 889 ms
65,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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))
}
0