結果

問題 No.793 うし数列 2
ユーザー hoge1e3hoge1e3
提出日時 2019-02-23 13:29:16
言語 JavaScript
(node v21.7.1)
結果
TLE  
実行時間 -
コード長 344 bytes
コンパイル時間 35 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 47,004 KB
最終ジャッジ日時 2024-04-21 02:28:22
合計ジャッジ時間 4,832 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
47,004 KB
testcase_01 AC 82 ms
40,192 KB
testcase_02 AC 75 ms
39,936 KB
testcase_03 AC 75 ms
39,936 KB
testcase_04 AC 78 ms
39,936 KB
testcase_05 AC 98 ms
45,312 KB
testcase_06 AC 123 ms
45,056 KB
testcase_07 AC 104 ms
45,312 KB
testcase_08 AC 121 ms
45,312 KB
testcase_09 AC 108 ms
45,056 KB
testcase_10 TLE -
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 #

var fs = require('fs');
var length = fs.fstatSync(process.stdin.fd).size;
var buffer = Buffer.alloc(length);
var bytesRead = fs.readSync(process.stdin.fd, buffer, 0, length, 0);
var input = buffer.toString('utf8', 0, bytesRead);
var n=input-0;
//var n=(r[1].length);
var b=1;
var m=1000000007;
while(n--) {
    b=(b*10+3)%m;
}
console.log(b);

0