結果
問題 |
No.441 和か積
|
ユーザー |
![]() |
提出日時 | 2018-06-11 08:00:46 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 3,031 ms |
コンパイル使用メモリ | 66,236 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 13:28:38 |
合計ジャッジ時間 | 4,176 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import strutils, sequtils proc trfm(x: string): int = case x: of "0", "1", "2": result = x.parseInt else: result = 3 let AB = stdin.readLine.split (A, B) = (AB[0], AB[1]) a = A.trfm b = B.trfm case a + b - a * b: of 1 .. int.high: echo "S" of int.low .. -1: echo "P" else: echo "E"