結果

問題 No.793 うし数列 2
コンテスト
ユーザー hiroa
提出日時 2019-05-03 15:14:39
言語 C++14
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
RE  
実行時間 -
コード長 320 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 904 ms
コンパイル使用メモリ 181,360 KB
実行使用メモリ 1,301,072 KB
最終ジャッジ日時 2026-10-09 23:47:27
合計ジャッジ時間 6,780 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 3 RE * 5 MLE * 2 -- * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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