結果
問題 |
No.841 8/32
|
ユーザー |
![]() |
提出日時 | 2019-07-15 17:40:36 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 68 ms / 2,000 ms |
コード長 | 411 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 6,820 KB |
実行使用メモリ | 39,424 KB |
最終ジャッジ日時 | 2024-10-13 01:13:06 |
合計ジャッジ時間 | 2,390 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
'use strict' const main = input => { const args = input.split('\n').map(arg => arg.split(' ')) const s = args[0].slice(0, 2) const tmp = [false, false] for (let i = 0; i < 2; i++) { if (s[i] === 'Sat' || s[i] === 'Sun') tmp[i] = true } if (tmp[0] && tmp[1]) console.log('8/33') else if (tmp[0]) console.log('8/32') else console.log('8/31') } main(require('fs').readFileSync('/dev/stdin', 'utf8'))