結果
| 問題 | No.509 塗りつぶしツール |
| コンテスト | |
| ユーザー |
t8m8⛄️
|
| 提出日時 | 2017-04-28 22:31:22 |
| 言語 | Nim (2.2.8) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 2,080 ms |
| コンパイル使用メモリ | 67,464 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-02 02:47:39 |
| 合計ジャッジ時間 | 3,789 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 16 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'strutils' [UnusedImport] /home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import strutils, sequtils
when isMainModule:
var
n = stdin.readline
a = [3, 2, 2, 2, 3, 2, 3, 2, 4, 3]
ans = 0
for i in 0..n.len-1:
ans += a[n[i].int - '0'.int]
echo ans + 1
t8m8⛄️