提出 #696821
ソースコード 拡げる
import Queue N, A, B = map(int, raw_input().split()) a = map(int, raw_input().split()) mod = 10**9 + 7 q = Queue.PriorityQueue() for ai in a: q.put(ai) i = 0 while i < B: a = q.get() q.put(a * A % mod) i += 1 while not q.empty(): print q.get()
提出情報
ジャッジ結果
| セット名 | all | ||||||
|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 100 | ||||||
| 結果 |
|
| セット名 | テストケース |
|---|---|
| all | example_0.txt, example_1.txt, example_2.txt, one_0.txt, one_1.txt, one_2.txt, one_3.txt, one_4.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt, smallB_0.txt, smallB_1.txt, smallB_2.txt, smallB_3.txt, smallB_4.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| example_0.txt | AC | 136 ms | 3052 KiB |
| example_1.txt | WA | 29 ms | 3052 KiB |
| example_2.txt | TLE | 2105 ms | 3052 KiB |
| one_0.txt | TLE | 2105 ms | 3052 KiB |
| one_1.txt | TLE | 2102 ms | 3052 KiB |
| one_2.txt | TLE | 2105 ms | 3052 KiB |
| one_3.txt | TLE | 2105 ms | 3052 KiB |
| one_4.txt | TLE | 2105 ms | 3052 KiB |
| random_0.txt | TLE | 2101 ms | 3052 KiB |
| random_1.txt | TLE | 2105 ms | 3052 KiB |
| random_2.txt | TLE | 2101 ms | 3052 KiB |
| random_3.txt | TLE | 2101 ms | 3052 KiB |
| random_4.txt | TLE | 2105 ms | 3052 KiB |
| smallB_0.txt | AC | 30 ms | 3052 KiB |
| smallB_1.txt | AC | 29 ms | 3052 KiB |
| smallB_2.txt | AC | 29 ms | 3052 KiB |
| smallB_3.txt | AC | 29 ms | 3052 KiB |
| smallB_4.txt | AC | 30 ms | 3052 KiB |