結果

問題 No.773 コンテスト
ユーザー d3etbkucsasgyd3etbkucsasgy
提出日時 2019-01-07 17:30:42
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 897 bytes
コンパイル時間 32 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 40,556 KB
最終ジャッジ日時 2024-04-21 02:26:10
合計ジャッジ時間 2,208 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
38,656 KB
testcase_01 WA -
testcase_02 AC 56 ms
38,784 KB
testcase_03 AC 56 ms
38,400 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 59 ms
38,784 KB
testcase_07 AC 58 ms
38,656 KB
testcase_08 WA -
testcase_09 AC 57 ms
38,528 KB
testcase_10 AC 59 ms
38,656 KB
testcase_11 AC 58 ms
38,656 KB
testcase_12 AC 59 ms
38,912 KB
testcase_13 WA -
testcase_14 AC 58 ms
38,656 KB
testcase_15 AC 57 ms
38,656 KB
testcase_16 AC 57 ms
38,656 KB
testcase_17 WA -
testcase_18 AC 59 ms
39,424 KB
testcase_19 WA -
testcase_20 AC 59 ms
38,528 KB
testcase_21 AC 58 ms
38,784 KB
testcase_22 AC 56 ms
38,656 KB
testcase_23 AC 59 ms
38,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// process.stdin.resume();
// process.stdin.setEncoding('utf8');
// Here your code !


// inputに入力データ全体が入る
function Main(input) {
	// 1行目がinput[0], 2行目がinput[1], …に入る
	input = input.split(" ");
	let firstDay = input[0];
	let lastDay = input[1];
	const firstEventDay = 23;
	const lastEventDay = 25;
	
	if (lastDay < firstEventDay) {
	    console.log(3);
	    return;
	} else if (lastEventDay < firstDay) {
	    console.log(3);
	    return;
	}
	if (firstDay < firstEventDay && lastEventDay < lastDay) {
	    console.log(0);
	    return;
	}
	if (lastDay <= lastEventDay) {
	    console.log(lastEventDay - lastDay);
	    return;
	}
	console.log(lastEventDay - firstDay);
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdin", "utf8"));


0