提出 #268044


ソースコード 拡げる

try:
	input1 = map(int, raw_input().split())
	input2 = map(int, raw_input().split())

	i = 0
	j = 0
	k = []
	for i in range(input1[0]):
		for j in range(input1[0]):
				hara = input1[1] + input2[1] * i + input2[3] * j - (input1[0] - i - j) * input2[4]
				if hara > 0:
					money = input2[0] * i + input2[2] * j
					k.append(money)
	print min(k)
except ValueError:
	print "ValueError"

提出情報

提出日時
問題 C - 節制
ユーザ san46
言語 Python (2.7.3)
得点 0
コード長 400 Byte
結果 WA
実行時間 2053 ms
メモリ 80756 KiB

ジャッジ結果

セット名 Subtask1 Subtask2 Subtask3 Subtask4
得点 / 配点 0 / 10 0 / 30 0 / 60 0 / 1
結果
AC × 24
WA × 1
AC × 23
WA × 2
AC × 84
WA × 2
AC × 81
WA × 1
TLE × 17
セット名 テストケース
Subtask1 sample_1.txt, sample_2.txt, sample_3.txt, 01_010.txt, 01_011.txt, 01_020.txt, 01_021.txt, 01_100.txt, 01_101.txt, 01_110.txt, 01_111.txt, 01_200.txt, 01_201.txt, 01_220.txt, 01_221.txt, 01_random01.txt, 01_random02.txt, 01_random03.txt, 01_random04.txt, 01_random05.txt, 01_random06.txt, 01_random07.txt, 01_random08.txt, 01_random09.txt, 01_random10.txt
Subtask2 sample_1.txt, sample_2.txt, sample_3.txt, 02_010.txt, 02_011.txt, 02_020.txt, 02_021.txt, 02_100.txt, 02_101.txt, 02_110.txt, 02_111.txt, 02_200.txt, 02_201.txt, 02_220.txt, 02_221.txt, 02_random01.txt, 02_random02.txt, 02_random03.txt, 02_random04.txt, 02_random05.txt, 02_random06.txt, 02_random07.txt, 02_random08.txt, 02_random09.txt, 02_random10.txt
Subtask3 sample_1.txt, sample_2.txt, sample_3.txt, sample_4.txt, 01_010.txt, 01_011.txt, 01_020.txt, 01_021.txt, 01_100.txt, 01_101.txt, 01_110.txt, 01_111.txt, 01_200.txt, 01_201.txt, 01_220.txt, 01_221.txt, 01_random01.txt, 01_random02.txt, 01_random03.txt, 01_random04.txt, 01_random05.txt, 01_random06.txt, 01_random07.txt, 01_random08.txt, 01_random09.txt, 01_random10.txt, 02_010.txt, 02_011.txt, 02_020.txt, 02_021.txt, 02_100.txt, 02_101.txt, 02_110.txt, 02_111.txt, 02_200.txt, 02_201.txt, 02_220.txt, 02_221.txt, 02_random01.txt, 02_random02.txt, 02_random03.txt, 02_random04.txt, 02_random05.txt, 02_random06.txt, 02_random07.txt, 02_random08.txt, 02_random09.txt, 02_random10.txt, 03_010.txt, 03_011.txt, 03_012.txt, 03_020.txt, 03_021.txt, 03_022.txt, 03_100.txt, 03_101.txt, 03_102.txt, 03_110.txt, 03_111.txt, 03_112.txt, 03_200.txt, 03_201.txt, 03_202.txt, 03_220.txt, 03_221.txt, 03_222.txt, 03_random01.txt, 03_random02.txt, 03_random03.txt, 03_random04.txt, 03_random05.txt, 03_random06.txt, 03_random07.txt, 03_random08.txt, 03_random09.txt, 03_random10.txt, 03_random11.txt, 03_random12.txt, 03_random13.txt, 03_random14.txt, 03_random15.txt, 03_random16.txt, 03_random17.txt, 03_random18.txt, 03_random19.txt, 03_random20.txt
Subtask4 01_010.txt, 01_011.txt, 01_020.txt, 01_021.txt, 01_100.txt, 01_101.txt, 01_110.txt, 01_111.txt, 01_200.txt, 01_201.txt, 01_220.txt, 01_221.txt, 01_random01.txt, 01_random02.txt, 01_random03.txt, 01_random04.txt, 01_random05.txt, 01_random06.txt, 01_random07.txt, 01_random08.txt, 01_random09.txt, 01_random10.txt, 02_010.txt, 02_011.txt, 02_020.txt, 02_021.txt, 02_100.txt, 02_101.txt, 02_110.txt, 02_111.txt, 02_200.txt, 02_201.txt, 02_220.txt, 02_221.txt, 02_random01.txt, 02_random02.txt, 02_random03.txt, 02_random04.txt, 02_random05.txt, 02_random06.txt, 02_random07.txt, 02_random08.txt, 02_random09.txt, 02_random10.txt, 03_010.txt, 03_011.txt, 03_012.txt, 03_020.txt, 03_021.txt, 03_022.txt, 03_100.txt, 03_101.txt, 03_102.txt, 03_110.txt, 03_111.txt, 03_112.txt, 03_200.txt, 03_201.txt, 03_202.txt, 03_220.txt, 03_221.txt, 03_222.txt, 03_random01.txt, 03_random02.txt, 03_random03.txt, 03_random04.txt, 03_random05.txt, 03_random06.txt, 03_random07.txt, 03_random08.txt, 03_random09.txt, 03_random10.txt, 03_random11.txt, 03_random12.txt, 03_random13.txt, 03_random14.txt, 03_random15.txt, 03_random16.txt, 03_random17.txt, 03_random18.txt, 03_random19.txt, 03_random20.txt, 04_010.txt, 04_011.txt, 04_020.txt, 04_021.txt, 04_100.txt, 04_101.txt, 04_110.txt, 04_111.txt, 04_200.txt, 04_201.txt, 04_220.txt, 04_221.txt, 04_random01.txt, 04_random02.txt, 04_random03.txt, 04_random04.txt, 04_random05.txt
ケース名 結果 実行時間 メモリ
01_010.txt AC 53 ms 3256 KiB
01_011.txt AC 53 ms 3260 KiB
01_020.txt AC 52 ms 3256 KiB
01_021.txt AC 52 ms 3268 KiB
01_100.txt AC 53 ms 3264 KiB
01_101.txt AC 53 ms 3268 KiB
01_110.txt AC 53 ms 3256 KiB
01_111.txt AC 53 ms 3268 KiB
01_200.txt AC 52 ms 3260 KiB
01_201.txt AC 54 ms 3304 KiB
01_220.txt AC 53 ms 3260 KiB
01_221.txt AC 54 ms 3300 KiB
01_random01.txt AC 51 ms 3260 KiB
01_random02.txt AC 53 ms 3260 KiB
01_random03.txt AC 53 ms 3256 KiB
01_random04.txt AC 53 ms 3260 KiB
01_random05.txt AC 52 ms 3264 KiB
01_random06.txt AC 52 ms 3260 KiB
01_random07.txt AC 53 ms 3268 KiB
01_random08.txt AC 52 ms 3260 KiB
01_random09.txt AC 52 ms 3260 KiB
01_random10.txt AC 53 ms 3256 KiB
02_010.txt AC 54 ms 3260 KiB
02_011.txt AC 55 ms 3372 KiB
02_020.txt AC 53 ms 3256 KiB
02_021.txt AC 56 ms 3372 KiB
02_100.txt AC 56 ms 3260 KiB
02_101.txt AC 54 ms 3264 KiB
02_110.txt AC 53 ms 3260 KiB
02_111.txt AC 53 ms 3364 KiB
02_200.txt AC 53 ms 3260 KiB
02_201.txt AC 55 ms 3268 KiB
02_220.txt AC 53 ms 3268 KiB
02_221.txt AC 55 ms 3372 KiB
02_random01.txt AC 51 ms 3248 KiB
02_random02.txt AC 53 ms 3268 KiB
02_random03.txt AC 51 ms 3256 KiB
02_random04.txt WA 53 ms 3260 KiB
02_random05.txt AC 55 ms 3364 KiB
02_random06.txt AC 53 ms 3264 KiB
02_random07.txt AC 52 ms 3256 KiB
02_random08.txt AC 53 ms 3260 KiB
02_random09.txt AC 54 ms 3260 KiB
02_random10.txt AC 54 ms 3324 KiB
03_010.txt AC 712 ms 17452 KiB
03_011.txt AC 62 ms 3504 KiB
03_012.txt AC 1079 ms 29232 KiB
03_020.txt AC 99 ms 4392 KiB
03_021.txt AC 908 ms 22704 KiB
03_022.txt AC 78 ms 3888 KiB
03_100.txt AC 666 ms 18100 KiB
03_101.txt AC 79 ms 3880 KiB
03_102.txt AC 955 ms 24552 KiB
03_110.txt AC 497 ms 14508 KiB
03_111.txt AC 547 ms 15204 KiB
03_112.txt AC 631 ms 16944 KiB
03_200.txt AC 492 ms 14380 KiB
03_201.txt AC 1156 ms 30116 KiB
03_202.txt AC 240 ms 7592 KiB
03_220.txt AC 251 ms 7844 KiB
03_221.txt AC 937 ms 25388 KiB
03_222.txt AC 452 ms 13100 KiB
03_random01.txt AC 405 ms 12204 KiB
03_random02.txt AC 64 ms 3628 KiB
03_random03.txt AC 789 ms 22320 KiB
03_random04.txt AC 1165 ms 29872 KiB
03_random05.txt AC 67 ms 3628 KiB
03_random06.txt AC 551 ms 16176 KiB
03_random07.txt AC 93 ms 4272 KiB
03_random08.txt AC 810 ms 19500 KiB
03_random09.txt AC 936 ms 24620 KiB
03_random10.txt AC 135 ms 5472 KiB
03_random11.txt AC 1036 ms 28584 KiB
03_random12.txt AC 912 ms 19108 KiB
03_random13.txt AC 539 ms 15012 KiB
03_random14.txt AC 777 ms 21036 KiB
03_random15.txt AC 58 ms 3372 KiB
03_random16.txt AC 1117 ms 27696 KiB
03_random17.txt AC 879 ms 21224 KiB
03_random18.txt AC 93 ms 4324 KiB
03_random19.txt AC 135 ms 5288 KiB
03_random20.txt AC 56 ms 3372 KiB
04_010.txt TLE 2053 ms 62580 KiB
04_011.txt TLE 2037 ms 28348 KiB
04_020.txt TLE 2038 ms 36920 KiB
04_021.txt TLE 2038 ms 39868 KiB
04_100.txt TLE 2037 ms 30208 KiB
04_101.txt TLE 2039 ms 64712 KiB
04_110.txt TLE 2036 ms 19984 KiB
04_111.txt TLE 2041 ms 61920 KiB
04_200.txt TLE 2039 ms 48508 KiB
04_201.txt TLE 2041 ms 58752 KiB
04_220.txt TLE 2034 ms 19852 KiB
04_221.txt TLE 2037 ms 30204 KiB
04_random01.txt TLE 2036 ms 22824 KiB
04_random02.txt TLE 2035 ms 18592 KiB
04_random03.txt TLE 2037 ms 44228 KiB
04_random04.txt TLE 2042 ms 80756 KiB
04_random05.txt TLE 2038 ms 44904 KiB
sample_1.txt AC 55 ms 3256 KiB
sample_2.txt WA 53 ms 3260 KiB
sample_3.txt AC 53 ms 3260 KiB
sample_4.txt AC 498 ms 13160 KiB