結果

問題 No.1003 サイコロの実装 (1)
ユーザー tsuchinagatsuchinaga
提出日時 2020-10-04 07:56:08
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 9,889 ms
コンパイル使用メモリ 251,012 KB
実行使用メモリ 42,444 KB
最終ジャッジ日時 2023-09-26 07:54:03
合計ジャッジ時間 13,196 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
42,228 KB
testcase_01 AC 75 ms
42,436 KB
testcase_02 AC 75 ms
42,388 KB
testcase_03 AC 72 ms
42,328 KB
testcase_04 AC 73 ms
42,260 KB
testcase_05 AC 74 ms
42,292 KB
testcase_06 AC 73 ms
42,316 KB
testcase_07 AC 75 ms
42,444 KB
testcase_08 AC 73 ms
42,248 KB
testcase_09 AC 74 ms
42,184 KB
testcase_10 AC 74 ms
42,276 KB
testcase_11 AC 73 ms
42,196 KB
testcase_12 AC 74 ms
42,336 KB
testcase_13 AC 76 ms
42,264 KB
testcase_14 AC 76 ms
42,240 KB
testcase_15 AC 76 ms
42,364 KB
testcase_16 AC 76 ms
42,220 KB
testcase_17 AC 75 ms
42,360 KB
testcase_18 AC 76 ms
42,232 KB
testcase_19 AC 75 ms
42,188 KB
testcase_20 AC 75 ms
42,244 KB
testcase_21 AC 74 ms
42,272 KB
testcase_22 AC 76 ms
42,216 KB
testcase_23 AC 74 ms
42,200 KB
testcase_24 AC 75 ms
42,188 KB
testcase_25 AC 74 ms
42,368 KB
testcase_26 AC 73 ms
42,364 KB
testcase_27 AC 75 ms
42,380 KB
権限があれば一括ダウンロードができます

ソースコード

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