結果
| 問題 | 
                            No.796 well known
                             | 
                    
| コンテスト | |
| ユーザー | 
                             c-yan
                         | 
                    
| 提出日時 | 2020-08-08 00:03:47 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 235 bytes | 
| コンパイル時間 | 142 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-09-25 01:45:13 | 
| 合計ジャッジ時間 | 3,303 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 2 | 
| other | RE * 15 | 
ソースコード
N = int(input())
PS = []
for _ in range(N):
    S, P = input().split()
    P = int(P)
    PS.append((P, S))
PS.sort(reverse=True)
total = sum(P for P, S in PS)
if PS[0][0] > total // 2:
    print(PS[0][1])
else:
    print('atcoder')
            
            
            
        
            
c-yan