QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#112339 | #5837. Rope Intranet | aureliafnkn | 0 | 1444ms | 8116kb | Python3 | 479b | 2023-06-11 12:23:03 | 2023-06-11 12:23:06 |
Judging History
answer
n = int(input('banyaknya kasus = '))
for i in range (1, n+1) :
a = int(input('banyaknya kabel = '))
kabel1 = []
kabel2 = []
for j in range (a) :
x, y = map(int, input().split())
kabel1.append(x)
kabel2.append(y)
titik = 0
for k in range (a) :
for l in range (k+1, a) :
if (kabel1[k] - kabel1[l]) * (kabel2[k] - kabel2[l]) < 0 :
titik = titik + 1
print(f"Case #{i} : {titik}")
详细
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 11ms
memory: 8004kb
input:
15 2 1 1 2 2 1 6 1 2 3 2 2 1 2 2 9 7 7 2 4 4 3 8 1 257 458 2 172 273 171 272 2 479 120 381 274 2 429 273 154 66 2 268 32 349 293 1 6101 4729 2 7263 8481 7262 8480 2 874 9245 7717 3695 2 5488 5430 3469 1507 2 2256 8501 40 172
output:
banyaknya kasus = banyaknya kabel = Case #1 : 0 banyaknya kabel = Case #2 : 0 banyaknya kabel = Case #3 : 0 banyaknya kabel = Case #4 : 1 banyaknya kabel = Case #5 : 1 banyaknya kabel = Case #6 : 0 banyaknya kabel = Case #7 : 0 banyaknya kabel = Case #8 : 1 banyaknya kabel = Case #9 : 0 banyaknya ka...
result:
wrong answer 1st lines differ - expected: 'Case #1: 0', found: 'banyaknya kasus = banyaknya kabel = Case #1 : 0'
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 1444ms
memory: 8116kb
input:
15 3 1 10 7 7 5 5 2 1 1 2 2 904 9015 4469 5478 5390 1381 682 1218 7666 2568 743 5760 9362 300 1290 6031 7504 1252 3096 6116 436 3410 9988 8377 4033 5743 5245 4595 1839 6730 5077 9998 7594 2301 3735 822 210 2966 60 5942 3781 6090 8816 1683 1219 652 935 2719 734 3528 9508 7636 7285 9050 5708 1938 4304...
output:
banyaknya kasus = banyaknya kabel = Case #1 : 2 banyaknya kabel = Case #2 : 0 banyaknya kabel = Case #3 : 198502 banyaknya kabel = Case #4 : 0 banyaknya kabel = Case #5 : 245659 banyaknya kabel = Case #6 : 245513 banyaknya kabel = Case #7 : 245768 banyaknya kabel = Case #8 : 0 banyaknya kabel = Case...
result:
wrong answer 1st lines differ - expected: 'Case #1: 2', found: 'banyaknya kasus = banyaknya kabel = Case #1 : 2'