提出 #17601013


ソースコード 拡げる

#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);
}

提出情報

提出日時
問題 A - box
ユーザ atug
言語 C++ (GCC 9.2.1)
得点 0
コード長 905 Byte
結果 MLE
実行時間 793 ms
メモリ 1048644 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 0 / 100
結果
AC × 1
MLE × 2
AC × 9
MLE × 6
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
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