結果
問題 | No.509 塗りつぶしツール |
ユーザー |
|
提出日時 | 2017-04-28 22:55:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 330 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-13 18:26:23 |
合計ジャッジ時間 | 1,874 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 2 WA * 25 |
ソースコード
def main():N = list(input())count = 0for n in N:if n in ("1","2","3","5","7"):count += 0elif n in ("0","4","6","9"):count += 1elif n == "8":count += 2count += min(1+2*len(N), len(N)+2)print(count)if __name__ == "__main__":main()