結果

問題 No.793 うし数列 2
ユーザー hoge1e3hoge1e3
提出日時 2019-02-25 16:55:53
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 353 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 6,812 KB
実行使用メモリ 52,000 KB
最終ジャッジ日時 2024-04-21 02:28:34
合計ジャッジ時間 4,743 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
47,008 KB
testcase_01 AC 67 ms
39,936 KB
testcase_02 AC 68 ms
39,680 KB
testcase_03 AC 68 ms
39,936 KB
testcase_04 AC 65 ms
39,808 KB
testcase_05 AC 88 ms
45,184 KB
testcase_06 AC 108 ms
44,928 KB
testcase_07 AC 89 ms
44,928 KB
testcase_08 AC 114 ms
44,928 KB
testcase_09 AC 96 ms
45,184 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-1)%(m-1)+1;
//var n=(r[1].length);
var b=1;
while(n--) {
    b=(b*10+3)%m;
}
console.log(b);
0