結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー MaboyMaboy
提出日時 2021-06-20 23:13:37
言語 Swift
(5.10.0)
結果
RE  
実行時間 -
コード長 159 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 97,024 KB
実行使用メモリ 7,660 KB
最終ジャッジ日時 2023-09-05 01:45:00
合計ジャッジ時間 2,888 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,660 KB
testcase_01 AC 3 ms
7,436 KB
testcase_02 RE -
testcase_03 AC 3 ms
7,516 KB
testcase_04 AC 3 ms
7,388 KB
testcase_05 WA -
testcase_06 AC 3 ms
7,408 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 4 ms
7,380 KB
testcase_10 AC 7 ms
7,396 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 9 ms
7,432 KB
testcase_14 AC 5 ms
7,460 KB
testcase_15 AC 9 ms
7,376 KB
testcase_16 WA -
testcase_17 AC 5 ms
7,324 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 5 ms
7,444 KB
testcase_22 AC 9 ms
7,456 KB
testcase_23 AC 4 ms
7,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

var n = readLine()!
var a = "0"
if n.first != "-"{
    if n.removeLast() == "0"{
        if n.removeLast() == "0"{
            a = n
        }
    }
}
print(a)
0