結果
| 問題 | No.785 色食い虫 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-18 15:53:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 75 ms / 2,000 ms |
| コード長 | 643 bytes |
| 記録 | |
| コンパイル時間 | 365 ms |
| コンパイル使用メモリ | 82,384 KB |
| 実行使用メモリ | 69,428 KB |
| 最終ジャッジ日時 | 2025-12-18 15:53:30 |
| 合計ジャッジ時間 | 3,888 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
import string
import sys
from typing import Generator, List, Tuple
def input(): return sys.stdin.readline().rstrip('\n')
def main():
def cvt(x):
if x == 'NONE':
return 16
return 15 - x.count(',')
r = cvt(input())
g = cvt(input())
b = cvt(input())
return (r * g * b)**2
if __name__ == '__main__':
ret = main()
def out(x):
if isinstance(x, List) or isinstance(x, Tuple):
print(*x)
else:
print(x)
if ret is None:
pass
elif isinstance(ret, Generator):
for val in ret:
out(val)
else:
out(ret)