結果
問題 |
No.509 塗りつぶしツール
|
ユーザー |
![]() |
提出日時 | 2018-10-04 09:47:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 211 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-12 11:10:14 |
合計ジャッジ時間 | 2,171 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 16 |
ソースコード
#coding:utf-8 def main(): num_list = [] n = list(input()) for i in n: num_list.append(replace(i)) print(sum(num_list)+1) def replace(i): two = {'1','2','3','5','7',} three = {'0','4','6','9',} #four = {'5',} if i in two: return 2 elif i in three: return 3 else: return 4 if __name__ == '__main__': main()