Submission #1117392
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderBeginnerContest055 { class ProgramC { static void Main(string[] args) { string szLine = Console.ReadLine(); string[] szArr = szLine.Split(' '); long n = int.Parse(szArr[0]); long m = int.Parse(szArr[1]); // 2c 個から c個のsを作る long c = (long)( (double)(m - 2 * n) / 4); long max = n + c; Console.WriteLine(max); } } }
Submission Info
Submission Time | |
---|---|
Task | C - Scc Puzzle |
User | masakam1 |
Language | C# (Mono 4.6.2.0) |
Score | 0 |
Code Size | 624 Byte |
Status | RE |
Exec Time | 22 ms |
Memory | 11092 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||||
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, 07.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 22 ms | 9044 KB |
00_example_02.txt | AC | 22 ms | 11092 KB |
01.txt | RE | 21 ms | 10592 KB |
02.txt | RE | 21 ms | 10592 KB |
03.txt | RE | 21 ms | 10592 KB |
04.txt | WA | 22 ms | 11092 KB |
05.txt | WA | 21 ms | 9172 KB |
06.txt | AC | 22 ms | 9044 KB |
07.txt | AC | 22 ms | 11092 KB |