結果

問題 No.841 8/32
ユーザー sato_tcssato_tcs
提出日時 2019-07-15 17:32:09
言語 JavaScript
(node v23.5.0)
結果
WA  
実行時間 -
コード長 384 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 41,328 KB
最終ジャッジ日時 2024-10-13 01:13:02
合計ジャッジ時間 2,128 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

'use strict'

const main = input => {
	const args = input.split('\n').map(arg => arg.split(' '))
	const s = args[0].slice(0, 2)
	let cnt = 0

	for (let i = 0; i < 2; i++) {
		if (s[i] === 'Sat' || s[i] === 'Sun') cnt++
	}

	if (cnt === 2) console.log('8/33')
	else if (cnt === 1) console.log('8/32')
	else console.log('8/31')
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
0