Submission #3089660


Source Code Expand

Copy
var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
var counter = function(str,seq){
    return str.split(seq).length - 1;
}
reader.on('line', function(line) {
  lines.push(line);
});
reader.on('close', function() {
    console.log(counter(lines[0], /1/));
});

Submission Info

Submission Time
Task ABC081A - Placing Marbles
User my316g
Language JavaScript (node.js v5.12)
Score 100
Code Size 341 Byte
Status
Exec Time 231 ms
Memory 21448 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 00_example_01.txt, 00_example_02.txt
All 100 / 100 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 231 ms 21448 KB
00_example_02.txt 60 ms 7500 KB
01.txt 60 ms 7500 KB
02.txt 60 ms 7500 KB
03.txt 60 ms 7500 KB
04.txt 61 ms 7500 KB
05.txt 60 ms 7500 KB
06.txt 61 ms 7500 KB