Submission #4097941


Source Code Expand

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompetitiveProgCsLib
{
	class MainProg
	{
		static string R => Console.ReadLine();
		static int RI => int.Parse(R);
		static double RD => double.Parse(R);
		static int[] RIs => R.Split(' ').Select(int.Parse).ToArray();
		static double[] RDs => R.Split(' ').Select(double.Parse).ToArray();
		static void Out(object obj) => Console.WriteLine(obj);
		static void OutLine<T>(IEnumerable<T> obj, string separateChar) => Out(String.Join(separateChar, obj));
		static void Outb(bool b) => Out(b ? "Yes" : "No");
		static void OutB(bool b) => Out(b ? "YES" : "NO");
		static bool IsIn(int y, int x, int h, int w) => 0 <= x && x < w && 0 <= y && y < h;
		static T MIN<T>(params T[] args) => args.Min();
		static T MAX<T>(params T[] args) => args.Max();

		static void Main(string[] args)
		{
			var na = RIs;
			var n = na[0];
			var a = na[1];
			var b = na[2];
			var max = Math.Min(a, b);
			if(a + b <= n)
			{
				Out(max + " 0");
			}
			else
			{
				Out(max + " " + (a + b - n));
			}
			
		}
	}
}

Submission Info

Submission Time
Task A - Subscribers
User haru_44
Language C# (Mono 4.6.2.0)
Score 100
Code Size 1166 Byte
Status AC
Exec Time 24 ms
Memory 13396 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10
Case Name Status Exec Time Memory
a01 AC 23 ms 11220 KiB
a02 AC 23 ms 11220 KiB
a03 AC 23 ms 11220 KiB
b04 AC 23 ms 11348 KiB
b05 AC 23 ms 11220 KiB
b06 AC 23 ms 13396 KiB
b07 AC 23 ms 11220 KiB
b08 AC 23 ms 11220 KiB
b09 AC 24 ms 13268 KiB
b10 AC 23 ms 9300 KiB