結果
問題 |
No.509 塗りつぶしツール
|
ユーザー |
|
提出日時 | 2018-01-17 11:53:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 570 bytes |
コンパイル時間 | 100 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-12-24 06:40:03 |
合計ジャッジ時間 | 2,716 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 16 |
ソースコード
# -*- coding: utf-8 -*- from queue import Queue import sys import subprocess import json import time import math import re #import sqlite3 import random #import numpy as np #from sklearn.datasets import fetch_mldata #from statistics import mean, median, variance, stdev #from chainer import cuda, Variable, FunctionSet, optimizers #import chainer.functions as F str1 = input() # 0 1 2 3 4 5 6 7 8 9 list1 = [1, 0, 0, 0, 1, 0, 1, 0, 2, 1] list2 = [v + 2 for v in list1] ans = 0 for i in range(len(str1)): ans += list2[int(str1[i])] print(ans + 1)