結果

問題 No.793 うし数列 2
ユーザー hoge1e3hoge1e3
提出日時 2019-02-23 13:31:57
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 348 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 7,196 KB
実行使用メモリ 52,256 KB
最終ジャッジ日時 2024-04-21 02:28:27
合計ジャッジ時間 4,740 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
47,008 KB
testcase_01 AC 71 ms
39,936 KB
testcase_02 AC 70 ms
40,192 KB
testcase_03 AC 69 ms
40,320 KB
testcase_04 AC 70 ms
39,936 KB
testcase_05 AC 87 ms
45,312 KB
testcase_06 AC 111 ms
45,312 KB
testcase_07 AC 100 ms
45,184 KB
testcase_08 AC 114 ms
45,056 KB
testcase_09 AC 102 ms
45,312 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 TLE -
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 m=1000000007;
var n=(input-0)%m;
//var n=(r[1].length);
var b=1;
while(n--) {
    b=(b*10+3)%m;
}
console.log(b);

0