結果

問題 No.1003 サイコロの実装 (1)
ユーザー tsuchinagatsuchinaga
提出日時 2020-10-04 07:56:08
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 7,979 ms
コンパイル使用メモリ 228,232 KB
実行使用メモリ 39,424 KB
最終ジャッジ日時 2024-12-31 16:21:36
合計ジャッジ時間 10,649 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

function issue1003(input: string) {
    if (Number(input.trim()) % 6 == 0) {
        console.log('Yes');
    } else {
        console.log('No');
    }
}

switch (process.platform) {
    case "win32":
        issue1003(require('fs').readFileSync('./stdin.txt', 'utf8'));
        break;
    default:
        issue1003(require('fs').readFileSync('/dev/stdin', 'utf8'));
        break;
}
0