結果
| 問題 | No.744 循環小数N桁目 Easy |
| コンテスト | |
| ユーザー |
megane_anko
|
| 提出日時 | 2021-02-23 00:02:03 |
| 言語 | TypeScript(Node) (7.0.2 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 2,000 ms |
| + 628µs | |
| コード長 | 389 bytes |
| 記録 | |
| コンパイル時間 | 3,343 ms |
| コンパイル使用メモリ | 189,184 KB |
| 実行使用メモリ | 48,896 KB |
| 最終ジャッジ日時 | 2026-10-12 15:54:58 |
| 合計ジャッジ時間 | 4,815 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
ソースコード
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');
}
megane_anko