結果
問題 | No.780 オフ会 |
ユーザー | T A |
提出日時 | 2020-07-10 23:38:05 |
言語 | TypeScript (5.2.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 551 bytes |
コンパイル時間 | 9,825 ms |
コンパイル使用メモリ | 250,944 KB |
実行使用メモリ | 44,852 KB |
最終ジャッジ日時 | 2023-08-01 23:42:10 |
合計ジャッジ時間 | 13,634 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 78 ms
42,552 KB |
testcase_01 | AC | 78 ms
42,708 KB |
testcase_02 | AC | 81 ms
42,552 KB |
testcase_03 | AC | 86 ms
42,820 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 82 ms
42,556 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 80 ms
42,560 KB |
testcase_10 | AC | 83 ms
42,604 KB |
testcase_11 | WA | - |
testcase_12 | AC | 84 ms
42,552 KB |
testcase_13 | AC | 84 ms
42,720 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 84 ms
42,612 KB |
testcase_17 | AC | 84 ms
42,648 KB |
testcase_18 | WA | - |
testcase_19 | AC | 86 ms
43,044 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
ソースコード
const lines = []; const reader = require('readline').createInterface({ input: process.stdin, output: process.stdout }); reader.on('line', function (line) { lines.push(line); }); reader.on('close', function () { const input:string = lines[0] const arr: number[] = input.split(' ').map(str => parseInt(str, 10)) const men = arr[0] const women = arr[1] const result = women >= men + 1 ? true : false if (result) { console.log('YES'); console.log(0); } else { console.log('NO'); console.log((men + 1) - women); } });