結果
| 問題 | No.2590 100000 Days of Christmas | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-03-06 16:53:35 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                CE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 496 bytes | 
| コンパイル時間 | 57 ms | 
| 最終ジャッジ日時 | 2024-09-29 18:16:52 | 
| 合計ジャッジ時間 | 1,917 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
            
            
            
            
            ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
eaefafc01d5e
[/j_bin/judge_tool judge 0 30000 ../CompileMemory.txt /dev/null sud /dev/null _ python3 -mpy_compile Main.py]
open /home/yuki2006/gopath/src/yukicoder/judge/lang/lang.csv: no such file or directory
goroutine 1 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
main.main.func1()
	/home/yuki2006/gopath/src/yukicoder/judge/main.go:20 +0x57
panic({0x7661e0?, 0xc00006eb70?})
	/usr/local/go/src/runtime/panic.go:770 +0x132
yukicoder/env.InitLangCommands(0x0)
	/home/yuki2006/gopath/src/yukicoder/env/lang.go:57 +0x3a5
main.main()
	/home/yuki2006/gopath/src/yukicoder/judge/main.go:42 +0x65
            
            ソースコード
from collections import defaultdict
import sys
def printe(*args, end="\n", **kwargs):
    print(*args, end=end, file=sys.stderr, **kwargs)
def main():
    N = int(input())
    presents = [input() for _ in range(N)]
    present_day = defaultdict(int)
    for idx, present in enumerate(presents, 1):
        present_day[present] += idx * (N - idx + 1)
    printe(present_day)
    for present, n in sorted(present_day.items()):
        print(n, present)
if __name__ == "__main__":
    main()
            
            
            
        