結果

問題 No.673 カブトムシ
ユーザー nmnmnmnmnmnmnmnmnmnmnmnmnmnm
提出日時 2015-09-21 00:44:30
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 894 bytes
コンパイル時間 2,125 ms
コンパイル使用メモリ 85,368 KB
実行使用メモリ 11,484 KB
最終ジャッジ日時 2023-09-18 02:16:55
合計ジャッジ時間 5,682 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <deque>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#include <cassert>
#include <iostream>
#include <stdio.h>
#include <time.h>
 
using namespace std;
 
#define sz size()
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(c) (c).begin(), (c).end()
#define rep(i,a,b) for(long long i=(a);i<(b);++i)
#define clr(a, b) memset((a), (b) ,sizeof(a))
 
#define MOD 1000000007

int main(){
  long long b,c,d;
  cin>>b>>c>>d;
  long long ans = 0;
  rep(i,0,d){
    ans = (ans+b)%MOD*(c%MOD)%MOD;
    ans %= MOD;
  }
  cout << ans << endl;
  return 0;
}
0