結果
| 問題 | No.509 塗りつぶしツール |
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 16:10:18 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 299 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 95,856 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-07-11 16:00:43 |
| 合計ジャッジ時間 | 3,734 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | WA * 27 |
ソースコード
# Predefined fill counts for each digit based on their connected components + background
fill_counts = {
'0': 2,
'1': 3,
'2': 3,
'3': 3,
'4': 4,
'5': 3,
'6': 4,
'7': 3,
'8': 2,
'9': 3,
}
n = input().strip()
total = sum(fill_counts[c] for c in n)
print(total)
gew1fw