結果
| 問題 |
No.841 8/32
|
| コンテスト | |
| ユーザー |
ose20
|
| 提出日時 | 2021-02-13 00:07:57 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 382 bytes |
| コンパイル時間 | 7,556 ms |
| コンパイル使用メモリ | 229,076 KB |
| 実行使用メモリ | 41,460 KB |
| 最終ジャッジ日時 | 2024-12-31 16:24:18 |
| 合計ジャッジ時間 | 9,792 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 19 WA * 2 |
ソースコード
import * as fs from 'fs';
const input = fs.readFileSync('/dev/stdin', 'utf8');
const arr = input.split(' ');
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(S1)) {
console.log("8/33");
}
else if(is_holiday(S1)) {
console.log("8/32");
}
else {
console.log("8/31");
}
ose20