結果

問題 No.744 循環小数N桁目 Easy
ユーザー megane_ankomegane_anko
提出日時 2021-02-23 00:02:03
言語 TypeScript
(5.4.3)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 389 bytes
コンパイル時間 4,003 ms
コンパイル使用メモリ 145,460 KB
最終ジャッジ日時 2024-04-27 03:36:34
合計ジャッジ時間 4,421 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.ts(1,21): error TS2307: Cannot find module 'fs' or its corresponding type declarations.

ソースコード

diff #

import * as fs from 'fs';
const input = fs.readFileSync('/dev/stdin', 'utf8');

let N = parseInt(input);

if (N % 6 === 1) {
    console.log('2');
} else if (N % 6 === 2) {
    console.log('8');
} else if (N % 6 === 3) {
    console.log('5');
} else if (N % 6 === 4) {
    console.log('7');
} else if (N % 6 === 5) {
    console.log('1');
} else if (N % 6 === 0) {
    console.log('4');
} 
0