QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#300234#2728. Boring LecturesCamillus0 8ms8436kbPython3408b2024-01-07 21:32:292024-01-07 21:32:30

Judging History

你现在查看的是最新测评结果

  • [2024-01-07 21:32:30]
  • 评测
  • 测评结果:0
  • 用时:8ms
  • 内存:8436kb
  • [2024-01-07 21:32:29]
  • 提交

answer

def Solve(N, A):
	x, y, sx, sy = 0, 0, 0, 0
	for i in range(1, N):
		if sx + A[x][i] < sy + A[y][i]:
			sx += A[x][i]
			x = i
		else:
			sy += A[y][i]
			y = i
	return sx + sy

N = 100
A = []

for i in range(N):
	A.append([1] * N)

i = 3

while i != N - 1:
	A[i - 1][i] = 100
	A[i - 2][i - 1] = 100
	i += 2

print(N)
for i in range(N):
	print(*A[i][i + 1:])

# print(Solve(N, A))

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 5ms
memory: 8368kb

input:

2 2 0
1 2

output:

100
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

wrong answer 1st lines differ - expected: '3', found: '100'

Subtask #2:

score: 0
Wrong Answer

Test #5:

score: 0
Wrong Answer
time: 8ms
memory: 8436kb

input:

2 2 4
1 1
1 0
1 2
2 0
2 2

output:

100
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

wrong answer 1st lines differ - expected: '2', found: '100'

Subtask #3:

score: 0
Skipped

Dependency #1:

0%