結果
問題 |
No.509 塗りつぶしツール
|
ユーザー |
|
提出日時 | 2017-04-29 11:19:06 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 849 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 19:10:05 |
合計ジャッジ時間 | 1,361 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#yuki_509 s=raw_input() l=len(s) h1=s.count('0')+s.count('4')+s.count('6')+s.count('9') h2=s.count('8')*2 res1=1+l*2+h1+h2 res2=l+(h1+h2+1)*2 res=min(res1,res2) print res