結果
問題 | No.432 占い(Easy) |
ユーザー |
![]() |
提出日時 | 2016-10-31 21:18:11 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 410 bytes |
コンパイル時間 | 2,925 ms |
コンパイル使用メモリ | 66,468 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 19:49:11 |
合計ジャッジ時間 | 4,073 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import strutils, sequtilsvar t = stdin.readline.parseintproc num(i,j : int): int =result = i + jif result >= 10: result = num(result div 10, result mod 10)proc val(cur: string): string =if cur.len == 1: return curresult = ""for i in 0..cur.len-2:result &= $num(ord(cur[i]) - ord('0'), ord(cur[i+1]) - ord('0'))return result.valfor i in 1..t:var s = stdin.readlineecho s.val