結果

問題 No.793 うし数列 2
ユーザー saio4016
提出日時 2019-02-22 21:54:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 629 bytes
コンパイル時間 1,461 ms
コンパイル使用メモリ 166,536 KB
実行使用メモリ 17,088 KB
最終ジャッジ日時 2024-11-25 07:58:20
合計ジャッジ時間 41,256 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8 TLE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
 
typedef long long ll;
typedef pair<int,int> P;
 
const int INF = 1e9;
const int mod = 1e9+7;
const double EPS = 1e-10;
const double PI = acos(-1.0);

int main()
{
    ll n;
    cin >> n;
    ll res = 1;
    /*for(int i = 1; i <= n; i++){
        ll base = 1;
        for(int j = 0; j < i; j++){
            base *= 10;
            base += 3;
            base %= mod;
        }
        cout << base << endl;
    }*/
    for(int i = 0; i < n; i++){
        res *= 10;
        res += 3;
        res %= mod;
    }
    cout <<res << endl;
    return 0;
}
0