提出 #5734106
ソースコード 拡げる
from sys import stdin
MOD = 1000003
q = int(stdin.readline().rstrip())
for i in range(q):
x, d, n = [int(x) for x in stdin.readline().rstrip().split()]
ans = 1
for j in range(n):
ans = ans * (x+(j*d))
ans = ans % MOD
print(ans)
提出情報
| 提出日時 | |
|---|---|
| 問題 | E - Product of Arithmetic Progression |
| ユーザ | toki |
| 言語 | PyPy3 (2.4.0) |
| 得点 | 0 |
| コード長 | 256 Byte |
| 結果 | TLE |
| 実行時間 | 2106 ms |
| メモリ | 42204 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 600 | ||||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example0.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, 016.txt, 017.txt, 018.txt, 019.txt, example0.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 000.txt | TLE | 2105 ms | 42204 KiB |
| 001.txt | TLE | 2106 ms | 40044 KiB |
| 002.txt | TLE | 2105 ms | 40044 KiB |
| 003.txt | TLE | 2106 ms | 40044 KiB |
| 004.txt | TLE | 2105 ms | 42160 KiB |
| 005.txt | TLE | 2106 ms | 40044 KiB |
| 006.txt | TLE | 2106 ms | 40044 KiB |
| 007.txt | TLE | 2106 ms | 40172 KiB |
| 008.txt | TLE | 2105 ms | 42044 KiB |
| 009.txt | TLE | 2106 ms | 40300 KiB |
| 010.txt | TLE | 2106 ms | 40044 KiB |
| 011.txt | TLE | 2106 ms | 40044 KiB |
| 012.txt | TLE | 2106 ms | 40300 KiB |
| 013.txt | TLE | 2105 ms | 41724 KiB |
| 014.txt | TLE | 2106 ms | 40044 KiB |
| 015.txt | TLE | 2106 ms | 40044 KiB |
| 016.txt | TLE | 2105 ms | 40044 KiB |
| 017.txt | TLE | 2105 ms | 41896 KiB |
| 018.txt | TLE | 2106 ms | 40044 KiB |
| 019.txt | TLE | 2105 ms | 40044 KiB |
| example0.txt | AC | 166 ms | 38512 KiB |