結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
10,800 KB
testcase_01 AC 41 ms
10,856 KB
testcase_02 AC 40 ms
10,732 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 39 ms
10,764 KB
testcase_07 WA -
testcase_08 AC 39 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,860 KB
testcase_15 WA -
testcase_16 AC 39 ms
10,936 KB
testcase_17 WA -
testcase_18 AC 39 ms
10,864 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 38 ms
10,744 KB
testcase_23 AC 39 ms
10,772 KB
testcase_24 AC 38 ms
10,976 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 39 ms
10,980 KB
testcase_28 AC 39 ms
10,760 KB
testcase_29 AC 39 ms
10,936 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 = [4, 3, 3, 3, 4, 3, 4, 3, 5, 4]
list2 = [v - 1 for v in list1]
ans = 0
for i in range(len(str1)):
    ans += list2[int(str1[i])]
print(ans + 1)






0