結果

問題 No.509 塗りつぶしツール
ユーザー naimonon77naimonon77
提出日時 2018-01-17 11:53:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 570 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 11,040 KB
最終ジャッジ日時 2023-08-25 20:32:18
合計ジャッジ時間 2,492 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
10,932 KB
testcase_01 AC 39 ms
10,948 KB
testcase_02 AC 39 ms
10,980 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 39 ms
10,936 KB
testcase_07 WA -
testcase_08 AC 38 ms
10,940 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 38 ms
10,884 KB
testcase_15 WA -
testcase_16 AC 39 ms
10,728 KB
testcase_17 WA -
testcase_18 AC 38 ms
10,728 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 39 ms
10,764 KB
testcase_23 AC 38 ms
10,872 KB
testcase_24 AC 39 ms
10,816 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 38 ms
10,760 KB
testcase_28 AC 39 ms
10,940 KB
testcase_29 AC 39 ms
10,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- 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)


0