結果

問題 No.245 貫け!
ユーザー TawaraTawara
提出日時 2015-07-17 23:11:17
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 388 bytes
コンパイル時間 2,245 ms
コンパイル使用メモリ 77,976 KB
実行使用メモリ 79,928 KB
最終ジャッジ日時 2023-09-22 18:09:27
合計ジャッジ時間 6,642 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
79,016 KB
testcase_01 AC 98 ms
78,928 KB
testcase_02 AC 98 ms
78,980 KB
testcase_03 AC 99 ms
78,796 KB
testcase_04 AC 99 ms
79,056 KB
testcase_05 AC 104 ms
78,832 KB
testcase_06 AC 109 ms
79,320 KB
testcase_07 AC 99 ms
78,844 KB
testcase_08 AC 131 ms
78,964 KB
testcase_09 WA -
testcase_10 AC 162 ms
79,100 KB
testcase_11 AC 206 ms
79,436 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 223 ms
79,424 KB
testcase_17 AC 234 ms
79,612 KB
testcase_18 AC 228 ms
79,340 KB
testcase_19 AC 228 ms
79,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def count(x1, y1, x2, y2):
	num = 0
	for a,b,c,d in line:
		if ((x1-x2)*(b-y1) - (y1-y2)*(a-x1))*((x1-x2)*(d-y1) - (y1-y2)*(c-x1)) <= 0:
			num += 1
	return num

N = int(raw_input())
line = [map(int,raw_input().split(" ")) for i in range(N)]
max_num = 0
for i in range(-100,101):
	for j in range(-100,101):
		max_num = max(max_num, count(-100,i,100,j), count(i,-100,j,100))
print max_num
0