結果

問題 No.785 色食い虫
ユーザー al1ce_nanka189ral1ce_nanka189r
提出日時 2019-02-11 13:08:07
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 686 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 10,924 KB
実行使用メモリ 8,024 KB
最終ジャッジ日時 2023-09-25 10:09:15
合計ジャッジ時間 2,531 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,924 KB
testcase_01 AC 17 ms
7,900 KB
testcase_02 AC 16 ms
7,828 KB
testcase_03 AC 16 ms
7,892 KB
testcase_04 AC 16 ms
7,924 KB
testcase_05 AC 16 ms
7,948 KB
testcase_06 AC 16 ms
8,004 KB
testcase_07 AC 16 ms
7,832 KB
testcase_08 AC 16 ms
7,948 KB
testcase_09 AC 16 ms
7,940 KB
testcase_10 AC 16 ms
7,956 KB
testcase_11 AC 16 ms
7,900 KB
testcase_12 AC 17 ms
8,008 KB
testcase_13 AC 17 ms
7,984 KB
testcase_14 AC 16 ms
8,004 KB
testcase_15 AC 17 ms
7,876 KB
testcase_16 AC 16 ms
7,888 KB
testcase_17 AC 17 ms
7,988 KB
testcase_18 AC 16 ms
8,004 KB
testcase_19 AC 17 ms
7,904 KB
testcase_20 AC 17 ms
7,992 KB
testcase_21 AC 16 ms
7,944 KB
testcase_22 AC 17 ms
8,024 KB
testcase_23 AC 17 ms
7,884 KB
testcase_24 AC 17 ms
7,948 KB
testcase_25 AC 16 ms
7,908 KB
testcase_26 AC 16 ms
8,000 KB
testcase_27 AC 16 ms
8,000 KB
testcase_28 AC 16 ms
7,924 KB
testcase_29 AC 17 ms
7,888 KB
testcase_30 AC 16 ms
8,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import sys
from operator import itemgetter
input = sys.stdin.readline

# a = int(input().rstrip())
# a, b = map(int, input().rstrip().split())
# D = list(map(int, input().rstrip().split()))
# H = [int(input().rstrip()) for _ in range(L)]
# DD = [[0 for j in range(100)] for i in range(200)]

# if __name__ == '__main__':

r_len, g_len, b_len = [0, 0, 0]

def count_len(str):
	if (str == "NONE"):
		return 0
	else:
		return ((len(str)+1) // 2)

if __name__ == '__main__':
	r = str(input().rstrip())
	g = str(input().rstrip())
	b = str(input().rstrip())
	r_len = 16 - count_len(r)
	g_len = 16 - count_len(g)
	b_len = 16 - count_len(b)

	print(r_len**2 * g_len**2 * b_len**2)
	
0