結果
問題 |
No.841 8/32
|
ユーザー |
![]() |
提出日時 | 2021-02-13 00:38:45 |
言語 | TypeScript (5.7.2) |
結果 |
AC
|
実行時間 | 61 ms / 2,000 ms |
コード長 | 386 bytes |
コンパイル時間 | 7,628 ms |
コンパイル使用メモリ | 229,048 KB |
実行使用メモリ | 39,552 KB |
最終ジャッジ日時 | 2024-12-31 16:24:58 |
合計ジャッジ時間 | 9,993 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
import * as fs from 'fs'; const input = fs.readFileSync('/dev/stdin', 'utf8'); const arr = input.split(/[ \n]/); let S1 = arr[0]; let S2 = arr[1]; function is_holiday (day : string) : boolean { return day === "Sat" || day === "Sun"; } if(is_holiday(S1) && is_holiday(S2)) { console.log("8/33"); } else if(is_holiday(S1)) { console.log("8/32"); } else { console.log("8/31"); }