Submission #19679350
Source Code Expand
function Main(input) {
const s = input.split('\n')[0];
let count = 0;
if (s.charAt(0) === '1') count++;
if (s.charAt(1) === '1') count++;
if (s.charAt(2) === '1') count++;
console.log(count);
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
Submission Info
| Submission Time | |
|---|---|
| Task | A - Placing Marbles |
| User | tk3fftk |
| Language | JavaScript (Node.js 12.16.1) |
| Score | 100 |
| Code Size | 273 Byte |
| Status | AC |
| Exec Time | 54 ms |
| Memory | 29624 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_example_01.txt, 00_example_02.txt |
| All | 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_example_01.txt | AC | 51 ms | 29564 KiB |
| 00_example_02.txt | AC | 44 ms | 29564 KiB |
| 01.txt | AC | 52 ms | 29536 KiB |
| 02.txt | AC | 52 ms | 29588 KiB |
| 03.txt | AC | 47 ms | 29528 KiB |
| 04.txt | AC | 48 ms | 29624 KiB |
| 05.txt | AC | 48 ms | 29508 KiB |
| 06.txt | AC | 54 ms | 29524 KiB |