結果

問題 No.793 うし数列 2
ユーザー hiroahiroa
提出日時 2019-05-03 15:14:39
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 320 bytes
コンパイル時間 1,564 ms
コンパイル使用メモリ 165,072 KB
実行使用メモリ 812,296 KB
最終ジャッジ日時 2023-08-30 05:46:44
合計ジャッジ時間 5,124 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
5,704 KB
testcase_01 AC 3 ms
5,892 KB
testcase_02 AC 3 ms
5,876 KB
testcase_03 AC 3 ms
5,696 KB
testcase_04 AC 3 ms
5,756 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 MLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define MOD 1000000007
#define INF 1e9

const int MAX_N=100010;
vector<int> G[MAX_N];

int main(){
    int N;
    cin>>N;
    
    string s;
    s='1';
    for(int i=1;i<=N;i++){
        s+='3';
    }
    
    ll a=stoi(s);
    cout<<a%MOD<<endl;
    
}
0