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