Submission #122853


Source Code Expand

Copy
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Program
{
    class Program
    {
        static void Main(string[] args)
        {
            var rc = Array.ConvertAll(Console.ReadLine().Split(' '), new Converter<string, int>(s => int.Parse(s)));
            var xy = Array.ConvertAll(Console.ReadLine().Split(' '), new Converter<string, int>(s => int.Parse(s)));
            var dl = Array.ConvertAll(Console.ReadLine().Split(' '), new Converter<string, int>(s => int.Parse(s)));
            Console.WriteLine("{0}", (factorial(xy[0] * xy[1]) / (factorial(dl[0]) * factorial(dl[1]))) * ((rc[0] - xy[0] + 1) * (rc[1] - xy[1] + 1)) % 1000000007);
        }

        static long factorial(long n)
        {
            return n == 0 ? 1 : (factorial(n - 1) * n);
        }
    }
}

Submission Info

Submission Time
Task D - AtCoder社の冬
User riusil0561
Language C# (Mono 2.10.8.1)
Score 0
Code Size 853 Byte
Status WA
Exec Time 166 ms
Memory 7856 KB

Judge Result

Set Name sub All
Score / Max Score 0 / 100 0 / 1
Status
AC × 12
RE × 13
AC × 12
WA × 17
RE × 23
Set Name Test Cases
sub 00_sample_01E.txt, 00_sample_02E.txt, 00_sample_03E.txt, test_03E.txt, test_04E.txt, test_07E.txt, test_08E.txt, test_11E.txt, test_12E.txt, test_15E.txt, test_16E.txt, test_19E.txt, test_20E.txt, test_23E.txt, test_24E.txt, test_27E.txt, test_28E.txt, test_31E.txt, test_32E.txt, test_36E.txt, test_37E.txt, test_38E.txt, test_39E.txt, test_45E.txt, test_47E.txt
All 00_sample_01E.txt, 00_sample_02E.txt, 00_sample_03E.txt, 00_sample_04.txt, test_01.txt, test_02.txt, test_03E.txt, test_04E.txt, test_05.txt, test_06.txt, test_07E.txt, test_08E.txt, test_09.txt, test_10.txt, test_11E.txt, test_12E.txt, test_13.txt, test_14.txt, test_15E.txt, test_16E.txt, test_17.txt, test_18.txt, test_19E.txt, test_20E.txt, test_21.txt, test_22.txt, test_23E.txt, test_24E.txt, test_25.txt, test_26.txt, test_27E.txt, test_28E.txt, test_29.txt, test_30.txt, test_31E.txt, test_32E.txt, test_33.txt, test_34.txt, test_35.txt, test_36E.txt, test_37E.txt, test_38E.txt, test_39E.txt, test_40.txt, test_41.txt, test_42.txt, test_43.txt, test_44.txt, test_45E.txt, test_46.txt, test_47E.txt, test_48.txt
Case Name Status Exec Time Memory
00_sample_01E.txt AC 142 ms 7748 KB
00_sample_02E.txt AC 145 ms 7852 KB
00_sample_03E.txt RE 135 ms 7780 KB
00_sample_04.txt RE 142 ms 7780 KB
test_01.txt WA 142 ms 7848 KB
test_02.txt WA 148 ms 7744 KB
test_03E.txt AC 140 ms 7764 KB
test_04E.txt RE 140 ms 7828 KB
test_05.txt WA 138 ms 7768 KB
test_06.txt RE 140 ms 7772 KB
test_07E.txt RE 137 ms 7776 KB
test_08E.txt RE 136 ms 7776 KB
test_09.txt WA 136 ms 7744 KB
test_10.txt RE 139 ms 7776 KB
test_11E.txt RE 138 ms 7776 KB
test_12E.txt RE 138 ms 7780 KB
test_13.txt WA 141 ms 7836 KB
test_14.txt RE 140 ms 7776 KB
test_15E.txt RE 134 ms 7772 KB
test_16E.txt RE 133 ms 7768 KB
test_17.txt WA 138 ms 7736 KB
test_18.txt WA 135 ms 7764 KB
test_19E.txt AC 137 ms 7772 KB
test_20E.txt AC 136 ms 7740 KB
test_21.txt WA 137 ms 7840 KB
test_22.txt RE 136 ms 7776 KB
test_23E.txt AC 137 ms 7856 KB
test_24E.txt RE 136 ms 7776 KB
test_25.txt RE 166 ms 7668 KB
test_26.txt WA 139 ms 7740 KB
test_27E.txt RE 137 ms 7772 KB
test_28E.txt RE 137 ms 7780 KB
test_29.txt RE 138 ms 7776 KB
test_30.txt RE 139 ms 7772 KB
test_31E.txt RE 137 ms 7780 KB
test_32E.txt RE 139 ms 7772 KB
test_33.txt WA 148 ms 7848 KB
test_34.txt RE 139 ms 7780 KB
test_35.txt WA 137 ms 7852 KB
test_36E.txt AC 141 ms 7856 KB
test_37E.txt AC 136 ms 7768 KB
test_38E.txt AC 139 ms 7744 KB
test_39E.txt AC 138 ms 7852 KB
test_40.txt RE 137 ms 7784 KB
test_41.txt WA 140 ms 7756 KB
test_42.txt WA 138 ms 7820 KB
test_43.txt WA 142 ms 7784 KB
test_44.txt WA 138 ms 7836 KB
test_45E.txt AC 146 ms 7764 KB
test_46.txt WA 136 ms 7852 KB
test_47E.txt AC 138 ms 7780 KB
test_48.txt WA 140 ms 7852 KB