結果

問題 No.722 100×100=1000
ユーザー MaboyMaboy
提出日時 2021-06-22 01:33:27
言語 Swift
(5.10.0)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 368 bytes
コンパイル時間 4,700 ms
コンパイル使用メモリ 180,264 KB
実行使用メモリ 14,940 KB
最終ジャッジ日時 2023-08-28 16:04:03
合計ジャッジ時間 6,131 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
14,208 KB
testcase_01 AC 8 ms
14,288 KB
testcase_02 AC 5 ms
14,228 KB
testcase_03 AC 5 ms
14,416 KB
testcase_04 AC 5 ms
14,024 KB
testcase_05 AC 6 ms
14,764 KB
testcase_06 AC 6 ms
14,936 KB
testcase_07 AC 6 ms
14,508 KB
testcase_08 AC 6 ms
14,228 KB
testcase_09 AC 5 ms
14,204 KB
testcase_10 AC 5 ms
14,364 KB
testcase_11 AC 5 ms
14,872 KB
testcase_12 AC 5 ms
14,608 KB
testcase_13 AC 5 ms
14,372 KB
testcase_14 AC 5 ms
14,236 KB
testcase_15 AC 5 ms
14,496 KB
testcase_16 AC 5 ms
14,748 KB
testcase_17 AC 5 ms
14,588 KB
testcase_18 AC 5 ms
14,416 KB
testcase_19 AC 5 ms
14,940 KB
testcase_20 AC 6 ms
14,356 KB
testcase_21 AC 6 ms
14,788 KB
testcase_22 AC 6 ms
14,468 KB
testcase_23 AC 6 ms
14,260 KB
testcase_24 AC 6 ms
14,588 KB
testcase_25 AC 6 ms
14,232 KB
testcase_26 AC 5 ms
14,608 KB
testcase_27 AC 6 ms
14,464 KB
testcase_28 AC 5 ms
14,200 KB
testcase_29 AC 5 ms
14,076 KB
testcase_30 AC 5 ms
14,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import Foundation
let s = readLine()!.split(separator: " ")
let n = s.map{Int($0)!}
var t = s.map{$0.replacingOccurrences(of: "0", with: "")}.map{abs(Int($0)!)}
var a = n[0] * n[1]


if t[0] <= 9 && t[1] <= 9 && n[0] % 100 == 0 && n[1] % 100 == 0{
    print(a / 10)
}else{
    if -99999999 <= a && a <= 99999999{
        print(a)
    }else{
        print("E")
    }
}
0