結果

問題 No.785 色食い虫
ユーザー O2MT
提出日時 2021-02-17 20:48:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 82,280 KB
実行使用メモリ 53,572 KB
最終ジャッジ日時 2024-09-14 06:13:54
合計ジャッジ時間 2,352 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

R = list(map(str,input().split(',')))
G = list(map(str,input().split(',')))
B = list(map(str,input().split(',')))

def setNum(s):
    if s[0] == 'NONE':
        return 0
    return len(s)

r,g,b = setNum(R),setNum(G),setNum(B)

print(((16-r)**2)*((16-g)**2)*((16-b)**2))
0