結果

問題 No.722 100×100=1000
ユーザー toshiro_yanagi
提出日時 2018-08-04 07:29:47
言語 Nim
(2.2.0)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 3,795 ms
コンパイル使用メモリ 67,148 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-12 10:45:49
合計ジャッジ時間 4,718 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils, math

let
  tmp = map(split readLine stdin, parseInt)
  (A, B) = (tmp[0], tmp[1])

proc judge(n: int): bool =
  let str = $(n.abs)
  count(str, "0") == len(str) - 1

if A.judge and B.judge:
  echo A * B div 10
elif A * B >= 10 ^ 8:
  echo 'E'
else:
  echo A * B
0