DISCUSSIONS

26 topics
Sort by:
Add Topic
Hi all
Hopefully my group does not get zero this time again :(
By Tong Hui | 
1025
Share Questions
can anyone please share questions here or share link where uploaded, best if with solutions. I could attempt only 1st question because of laptop issue 
By Neha Karal | 
30
Request to re-open Shopee Programming Contest #1 and #2
I would like to request organizer to re-open Shopee Programming Contest #1 and #2 for practice.
By Arn Lee | 
03
Let's share solutions! I'll start...
Q3 (2 private test cases passed cuz of NZEC but pretty sure the algo is legit)def dist(eng,router):    return ((eng[0]-router[0])**2 +(eng[1]-router[1])**2)**0.5 engineers = int(input())        #no. of engineers englst = [] for i in range(engineers):      #get in all the engineer locations    coords = [int(i) for i in input().split()]    englst.append(coords) coords = [int(i) for i in input().split()]  #get in the 2 router locations geo = [coords[0],coords[1]] air = [coords[2],coords[3]] queries = int(input()) rangelst = [] for i in range(queries):        #get in the queries in power    ranges = [int(i) for i in input().split()]    rangelst.append(ranges) ''' print('englst',englst) print("geo {} air {}".format(geo,air)) print("Ranges {}".format(rangelst))''' #print((dist(englst[0],geo)>rangelst[0][0] and dist(englst[0],air)>rangelst[0][1]) or (dist(englst[0],geo)<=rangelst[0][0] and dist(englst[0],air)<=rangelst[0][1])) ''' for ranger in rangelst:    for eng in englst:        print(ranger,eng) ''' for ranger in rangelst:    total = 0    for eng in englst:        if (dist(eng,geo)>ranger[0] and dist(eng,air)>ranger[1]) or (dist(eng,geo)<=ranger[0] and dist(eng,air)<=ranger[1]):            total+=1    print(total)
By DIVERSITE | 
30
Something wrong with the input for WiFi Network problem
I just write the code to read input.clients = []N = int(input())for i in range(N):    clients.append(list(map(int, input().split(" "))))xg, yg, xa, ya = map(int, input().split(" "))And get the error with "not enough values to unpack (expected 4, got 2)" in line "xg, yg, xa, ya = map(int, input().split(" "))" for some test cases. But some are pass.In the problem's input detail says that four integers Xg, Yg representing Cg, and Xa, Ya representing Ca come after N + 1 lines.Does the input format have any problems? 
By kritsada.lpwk | 
52
Anyone solved qn 5?
Please kindly share the answer for q5 if you have it, would love to learn. Thank you! 
By Kevin Foong | 
20
Practice
Is it possible to leave this contest open for practice, at least for a little bit longer?
By Andrea Jaba | 
01
Qn 3 why does the number of connected components decreases when new connections are pushed, but increases when recent connections are popped?
I don't understand the sample input and output, given that we start with an empty network, shouldn't the number of connected components start as 0? After you push 1-2, how does it become 4?
By The Musketeers | 
63
q1 input
Hi! What's the format of input for question1 (Highest Mountain)
By Anastasiya Ivanova | 
40
Wifi network problem
expected 4 values, only got 2 for the Xg Yg Xa Ya values. How do i go around thhis? saw others that said read two lines but did not work for me
By sakmakdak | 
00
Runtime Error
Ran into runtime error NZEC. When looking at all the submissions done, I realised only C++ does not encounter this problem. My Python 3 code is working fine and within the time limit yet ran into this error.
By Pseudo Coders | 
01
Runtime error for network problem
Hi i am getting an error when reading querys for engineers.I am getting:Exception Name: ValueError: invalid literal for int() with base 10 Exception Message: '39080857 11864883\r'I passed the first 2 test cases but the rest have run time errorsAny ideas?
By Andre Wong | 
11
Clarification: Shopee Logistics
Is it safe to assume it's an acyclic graph? It's not mentioned in the problem but cyclic graph would have the longest path value to be infinite
By GLDK Candra | 
10
Runtime error for wifi network problem
Hi, I have passed the first and second input but the rest shows runtime error. I wonder what may be the problem that causes this happen?
By The Clueless | 
22
NZEC Error
RESULT: Runtime Error - NZECTime (sec)0.10000000149Memory (KiB)64LanguagePython 3.8 I did the full code on my VS Code, it printed desired results. with print(...), but this error when testing on hackerearth.This is for the highest mountain problem
By Eugene Wong | 
01
Logistics
Can we assume that all the lengths are >= 0 for this question (Li >= 0)
By anythinglor | 
10
Runtime Error - NZEC
I received NZEC error for "Shopee Logistics" problem despite having 3.9 sec time and 3100 memory (KiB)How do I handle this error?
By WakinUp Febriadi | 
51
NZEC Error
Hello,My team was unable to submit despite getting the correct logic and syntax. We keep getting Runtime Error - NZEC
By JorKenZi Hong | 
34
Importing and installing module in Python 3
Hi, I am using python 3 for the programming language, and the module that we want to use is not installed in the code editor, is there a way to install the module since it seems we cannot use pip to install it? Or is the usage of module in python not allowed?
By alvin.subakti | 
20
How to change the team's name?
hey, please tell me how to change the team's name
By Muthahhari Padmanagara | 
00

?