Task: | Karkit |
Sender: | waltteri |
Submission time: | 2021-10-13 23:04:10 +0300 |
Language: | Node.js |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.44 s | details |
#2 | WRONG ANSWER | 0.44 s | details |
#3 | WRONG ANSWER | 0.44 s | details |
#4 | WRONG ANSWER | 0.44 s | details |
#5 | WRONG ANSWER | 0.44 s | details |
Code
// @ts-check const { createInterface } = require('readline'); const { stdin, stdout } = require('process'); (async () => { const reader = createInterface({ input: stdin, output: stdout, terminal: false, }); /** @returns {Promise<number>} */ const input = () => new Promise(resolve => reader.question('', answer => resolve(parseInt(answer))) ); const n = await input(), a = await input(), b = await input(); const smaller = a < b ? a : b; const ans = Math.trunc(n / smaller); console.info(ans); reader.close(); })();
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
100 1 1 |
correct output |
---|
100 |
user output |
---|
(empty) |
Test 2
Verdict: WRONG ANSWER
input |
---|
1 100 100 |
correct output |
---|
0 |
user output |
---|
(empty) |
Test 3
Verdict: WRONG ANSWER
input |
---|
50 2 3 |
correct output |
---|
25 |
user output |
---|
(empty) |
Test 4
Verdict: WRONG ANSWER
input |
---|
100 17 3 |
correct output |
---|
33 |
user output |
---|
(empty) |
Test 5
Verdict: WRONG ANSWER
input |
---|
5 5 5 |
correct output |
---|
1 |
user output |
---|
(empty) |