Submission #3808117
Source Code Expand
using System; using System.Collections.Generic; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int A = 0; int B = 0; int i = 1; int k = 0; while (true) { if(A >= a && B >=b ) { k = A - a; break; } A += i; B += (i + i + 1); i++; } Console.WriteLine(k); } } }
Submission Info
Submission Time | |
---|---|
Task | B - Stone Monument |
User | k97037171 |
Language | C# (Mono 4.6.2.0) |
Score | 0 |
Code Size | 769 Byte |
Status | WA |
Exec Time | 21 ms |
Memory | 13140 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, sample_01.txt, sample_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 21 ms | 11092 KB |
02.txt | WA | 21 ms | 11092 KB |
03.txt | WA | 20 ms | 9044 KB |
04.txt | WA | 20 ms | 9044 KB |
05.txt | WA | 21 ms | 11092 KB |
06.txt | WA | 20 ms | 9044 KB |
07.txt | WA | 20 ms | 9044 KB |
08.txt | WA | 20 ms | 11092 KB |
09.txt | AC | 20 ms | 11092 KB |
10.txt | AC | 21 ms | 13140 KB |
sample_01.txt | AC | 21 ms | 11092 KB |
sample_02.txt | AC | 21 ms | 11092 KB |