Submission #17601013


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

int recursive1(int a, int b, int c, int d, int e, int f, int g, int h,
        int i, int j, int k, int l, int m, int n, int o, int p,
        int q, int r, int s, int t, int u, int v, int w, int x,
        int y, int z, int depth)
{
    int ret = 0;
    if (depth > 0)
        ret = recursive1(a, b, c, d, e, f, g, h,
                i, j, k, l, m, n, o, p,
                q, r, s, t, u, v, w, x,
                y, z, depth - 1);
    ret += a + b + c + d + e + f + g + h;
    ret += i + j + k + l + m + n + o + p;
    ret += q + r + s + t + u + v + w + x;
    ret += y + z;
    return ret;
}

int main()
{
    int N, A, B;
    cin >> N >> A >> B;
    cout << N - A + B << endl;
    static const int depth = 4459062;
    recursive1(0, 1, 2, 3, 4, 5, 6, 7,
            0, 1, 2, 3, 4, 5, 6, 7,
            0, 1, 2, 3, 4, 5, 6, 7,
            0, 1, depth);
}

Submission Info

Submission Time
Task A - box
User atug
Language C++ (GCC 9.2.1)
Score 0
Code Size 905 Byte
Status MLE
Exec Time 793 ms
Memory 1048644 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 1
MLE × 2
AC × 9
MLE × 6
Set Name Test Cases
Sample sample1.txt, sample2.txt, sample3.txt
All 1.txt, 10.txt, 11.txt, 12.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt
Case Name Status Exec Time Memory
1.txt AC 793 ms 1048292 KiB
10.txt AC 677 ms 1048468 KiB
11.txt MLE 674 ms 1048632 KiB
12.txt AC 679 ms 1048576 KiB
2.txt AC 677 ms 1048568 KiB
3.txt AC 677 ms 1048568 KiB
4.txt AC 676 ms 1048516 KiB
5.txt AC 677 ms 1048512 KiB
6.txt MLE 676 ms 1048640 KiB
7.txt MLE 678 ms 1048644 KiB
8.txt AC 675 ms 1048468 KiB
9.txt MLE 677 ms 1048644 KiB
sample1.txt MLE 676 ms 1048628 KiB
sample2.txt MLE 677 ms 1048580 KiB
sample3.txt AC 676 ms 1048516 KiB