結果
| 問題 | No.509 塗りつぶしツール |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-04-28 23:34:01 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 693 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2026-04-04 07:01:00 |
| 合計ジャッジ時間 | 4,206 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 16 |
ソースコード
def main():
n = str(input())
ans = 0
for num in n:
if num == '1' or num == '2'or num == '3' or num == '5' or num == '7':
ans += 2
elif num == '0' or num == '4' or num == '6' or num == '9':
ans += 3
elif num == '8':
ans += 4
print(ans + 1)
main()