提出 #5731057
ソースコード 拡げる
#include<iostream>
#include<string>
#include<typeinfo>
#include<vector>
#include<algorithm>
#include<map>
#include<iomanip>
typedef long long int ll;
using namespace std;
int main()
{
int q;
cin >> q;
ll x,d,n;
for(int i=0; i<q; i++){
cin >> x >> d >> n;
ll ans=x;
ll tmp=x;
for(int j=1; j<n; j++){
tmp+=d;
ans*=tmp;
if(ans>=1000003){
ans %= 1000003;
}
}
cout << ans << endl;
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | E - Product of Arithmetic Progression |
| ユーザ | proton |
| 言語 | C++14 (GCC 5.4.1) |
| 得点 | 0 |
| コード長 | 454 Byte |
| 結果 | TLE |
| 実行時間 | 2103 ms |
| メモリ | 384 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 | 2103 ms | 256 KiB |
| 001.txt | TLE | 2103 ms | 256 KiB |
| 002.txt | TLE | 2103 ms | 256 KiB |
| 003.txt | TLE | 2103 ms | 384 KiB |
| 004.txt | TLE | 2103 ms | 256 KiB |
| 005.txt | TLE | 2103 ms | 256 KiB |
| 006.txt | TLE | 2103 ms | 256 KiB |
| 007.txt | TLE | 2103 ms | 256 KiB |
| 008.txt | TLE | 2103 ms | 256 KiB |
| 009.txt | TLE | 2103 ms | 256 KiB |
| 010.txt | TLE | 2103 ms | 256 KiB |
| 011.txt | TLE | 2103 ms | 256 KiB |
| 012.txt | TLE | 2103 ms | 256 KiB |
| 013.txt | TLE | 2103 ms | 256 KiB |
| 014.txt | TLE | 2103 ms | 256 KiB |
| 015.txt | TLE | 2103 ms | 256 KiB |
| 016.txt | TLE | 2103 ms | 256 KiB |
| 017.txt | TLE | 2103 ms | 256 KiB |
| 018.txt | TLE | 2103 ms | 256 KiB |
| 019.txt | TLE | 2103 ms | 256 KiB |
| example0.txt | AC | 1 ms | 256 KiB |