| Task: | Karkit |
| Sender: | waltteri |
| Submission time: | 2021-10-09 21:58:08 +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 reader = createInterface({
input: process.stdin,
output: process.stdout,
terminal: false,
});
reader.on('line', line => {
const args = line.split(' ').map(item => parseInt(item));
const answer = args[0] / (args[1] + args[2]);
console.log(answer);
});
Test details
Test 1
Verdict: WRONG ANSWER
| input |
|---|
| 100 1 1 |
| correct output |
|---|
| 100 |
| user output |
|---|
| NaN NaN NaN |
Test 2
Verdict: WRONG ANSWER
| input |
|---|
| 1 100 100 |
| correct output |
|---|
| 0 |
| user output |
|---|
| NaN NaN NaN |
Test 3
Verdict: WRONG ANSWER
| input |
|---|
| 50 2 3 |
| correct output |
|---|
| 25 |
| user output |
|---|
| NaN NaN NaN |
Test 4
Verdict: WRONG ANSWER
| input |
|---|
| 100 17 3 |
| correct output |
|---|
| 33 |
| user output |
|---|
| NaN NaN NaN |
Test 5
Verdict: WRONG ANSWER
| input |
|---|
| 5 5 5 |
| correct output |
|---|
| 1 |
| user output |
|---|
| NaN NaN NaN |
