Sort by

recency

|

4729 Discussions

|

  • + 0 comments

    my solution:

    if name == 'main': mylist = [] for _ in range(int(input())): name = input() score = float(input()) mylist.append([name,score]) mylist1 = [score1[1] for score1 in mylist] mylist1.sort() myset = set(mylist1) mylist3 = list(myset) mylist2 = [] for name,score in mylist: if score == mylist3[1]: mylist2.append(name) mylist2.sort() for name in mylist2: print(name)

  • + 0 comments

    Absolutely agree — the new interface feels clunky and less intuitive. The extra steps and obstructed view make it frustrating, especially when quick data access matters. As someone in corporate headshot dubai work, I rely on clear, efficient apps to plan outdoor shoots. The older UI let me check location-specific weather instantly, which helped a lot in scheduling.

  • + 0 comments

    if name == 'main': records = {} for _ in range(int(input())): name = input() score = float(input()) records[name] = score second_lowest_score = sorted(set(records.values()))[1] second_lowest_names = sorted(name for name, score in records.items() if score == second_lowest_score) for name in second_lowest_names: print(name)

  • + 0 comments
    if __name__ == '__main__':
        records={}
        for _ in range(int(input())):
            name = input()
            score = float(input())
            records[name]=score
        for i in sorted([key for key,value in records.items() if value== sorted(set(records.values()))[1]]):
            print(i)
    
  • + 0 comments
    if __name__ == '__main__':
        
        N = int(input())
        records = []
        scores = []
        
        if 2 <= N <= 5:
            for _ in range(N):
                name = input()
                score = float(input())
                records.append([name, score]) 
                scores.append(score) 
        else:
            print("Invalid!")
         
        #remove duplicates, sort them and get the second lowest value
        second_lowest_score = sorted(set(scores))[1]  
        
        #extract names of students who have the second lowest score
        second_lowest_name = [name for name, score in records if score ==               
                              second_lowest_score]
                              
        second_lowest_name.sort()
        print(*second_lowest_name, sep="\n") #unpacking