結果

問題 No.509 塗りつぶしツール
ユーザー maguroguma
提出日時 2017-08-14 20:18:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 447 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-10-13 10:00:24
合計ジャッジ時間 2,105 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

'''
数字のグループ分け
1,2,3,5,7
0,4,6,9
8
'''

n = input()
singles = ['0','4','6','9']
doubles = ['8']

answer = 0
# 文字自体の他色変更
answer += len(n)
# 背景の黒塗りつぶし
answer += 1
# 文字の中の図形の黒塗りつぶし
for c in n:
    if c in singles:
        answer += 1
    elif c in doubles:
        answer += 2
# 文字自体の白塗りつぶし
answer += len(n)

print(answer)
0