結果
問題 | No.785 色食い虫 |
ユーザー |
![]() |
提出日時 | 2020-03-31 00:37:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 162 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-23 08:22:34 |
合計ジャッジ時間 | 1,820 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
r = input() g = input() b = input() col = [] if r != 'NONE': col.append(list(r.split(","))) if g != 'NONE': col.append(list(g.split(","))) if b != 'NONE': col.append(list(b.split(","))) ans = 1 for s in col: ans *= (16-len(s))**2 ans2 = ans*(16**2)**(3-len(col)) print(max(ans,ans2))