結果
問題 |
No.793 うし数列 2
|
ユーザー |
![]() |
提出日時 | 2018-10-26 12:49:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 2,155 ms |
コンパイル使用メモリ | 192,696 KB |
最終ジャッジ日時 | 2025-01-06 14:45:51 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 TLE * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; const long long mod = 1e9 + 7; int main(){ long long n, ans = 1; cin >> n; for(int i = 0; i < n; i++){ ans = (ans * 10 + 3) % mod; } cout << ans << endl; }