Submission #324910


Source Code Expand

using System;
class Program
{
    static void Main(string[] args)
    {
        int t = 0;
        int[] a = new int[6];
        string[] s = Console.ReadLine().Split(' ');
        for (int i = 0; i < 6; i++) a[i] = int.Parse(s[i]);
        Array.Sort(a, 0, 3);
        Array.Sort(a, 3, 3);
        for (int i = 0; i < 3; i++) t += Math.Abs(a[i] - a[i + 3]);
        Console.WriteLine(t);
    }
}

Submission Info

Submission Time
Task A - マッサージチェア
User niconico774
Language C# (Mono 2.10.8.1)
Score 100
Code Size 410 Byte
Status AC
Exec Time 158 ms
Memory 7916 KiB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 25
Set Name Test Cases
All random-00.txt, random-01.txt, random-02.txt, random-03.txt, random-04.txt, random-05.txt, random-06.txt, random-07.txt, random-08.txt, random-09.txt, random-10.txt, random-11.txt, random-12.txt, random-13.txt, random-14.txt, random-15.txt, random-16.txt, random-17.txt, random-18.txt, random-19.txt, test-00.txt, test-01.txt, test-02.txt, test-03.txt, test-04.txt
Case Name Status Exec Time Memory
random-00.txt AC 153 ms 7764 KiB
random-01.txt AC 154 ms 7796 KiB
random-02.txt AC 151 ms 7804 KiB
random-03.txt AC 152 ms 7756 KiB
random-04.txt AC 156 ms 7888 KiB
random-05.txt AC 152 ms 7760 KiB
random-06.txt AC 153 ms 7800 KiB
random-07.txt AC 152 ms 7772 KiB
random-08.txt AC 152 ms 7892 KiB
random-09.txt AC 155 ms 7768 KiB
random-10.txt AC 153 ms 7792 KiB
random-11.txt AC 156 ms 7916 KiB
random-12.txt AC 153 ms 7880 KiB
random-13.txt AC 153 ms 7888 KiB
random-14.txt AC 151 ms 7892 KiB
random-15.txt AC 158 ms 7760 KiB
random-16.txt AC 153 ms 7760 KiB
random-17.txt AC 152 ms 7880 KiB
random-18.txt AC 155 ms 7888 KiB
random-19.txt AC 151 ms 7764 KiB
test-00.txt AC 151 ms 7888 KiB
test-01.txt AC 156 ms 7892 KiB
test-02.txt AC 152 ms 7764 KiB
test-03.txt AC 153 ms 7808 KiB
test-04.txt AC 152 ms 7764 KiB