Submission #1987474
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp4 { class Program { static void Main(string[] args) { string a = Console.ReadLine(); int x = 0; for (int i = 0; i < 3; i++) { if (a[i] == '1') { x += 1; } } Console.WriteLine(x); } } }
Submission Info
Submission Time | |
---|---|
Task | A - Placing Marbles |
User | antimatter |
Language | C# (Mono 4.6.2.0) |
Score | 100 |
Code Size | 534 Byte |
Status | AC |
Exec Time | 20 ms |
Memory | 13140 KB |
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 | 20 ms | 9044 KB |
00_example_02.txt | AC | 20 ms | 9044 KB |
01.txt | AC | 20 ms | 11092 KB |
02.txt | AC | 20 ms | 11092 KB |
03.txt | AC | 20 ms | 13140 KB |
04.txt | AC | 20 ms | 13140 KB |
05.txt | AC | 20 ms | 11092 KB |
06.txt | AC | 20 ms | 11092 KB |