結果
| 問題 |
No.793 うし数列 2
|
| コンテスト | |
| ユーザー |
dsytk7
|
| 提出日時 | 2019-02-22 21:59:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 495 bytes |
| コンパイル時間 | 1,549 ms |
| コンパイル使用メモリ | 165,524 KB |
| 実行使用メモリ | 13,640 KB |
| 最終ジャッジ日時 | 2024-11-25 08:21:02 |
| 合計ジャッジ時間 | 35,469 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 WA * 2 TLE * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int (i)=(0);(i)<(int)(n);++(i))
using ll = long long;
using P = pair<ll, ll>;
using namespace std;
template<class T> void vin(vector<T>& v, int n) {
v.resize(n);
for (int i = 0; i < n; ++i) {
cin >> v[i];
}
}
ll mod = 1e9+7;
int main() {
ll N;
cin >> N;
N %= mod;
ll ans = 13;
rep(i, N-1) {
ans = (ans * 10LL % mod) + 3LL;
ans %= mod;
}
cout << ans << endl;
}
dsytk7