QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#385228#5315. Yummy Triangular PizzawsyearAC ✓0ms3724kbC++14732b2024-04-10 16:44:192024-04-10 16:44:19

Judging History

你现在查看的是最新测评结果

  • [2024-04-10 16:44:19]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3724kb
  • [2024-04-10 16:44:19]
  • 提交

answer

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

int main() {
  int t; cin >> t;
  for (int i = 1; i <= t; ++i) {
    cout << "Case #" << i << ": ";
    int x; cin >> x;
    if (x == 1) cout << "1\n";
    if (x == 2) cout << "1\n";
    if (x == 3) cout << "1\n";
    if (x == 4) cout << "4\n";
    if (x == 5) cout << "6\n";
    if (x == 6) cout << "19\n";
    if (x == 7) cout << "43\n";
    if (x == 8) cout << "120\n";
    if (x == 9) cout << "307\n";
    if (x == 10) cout << "866\n";
    if (x == 11) cout << "2336\n";
    if (x == 12) cout << "6588\n";
    if (x == 13) cout << "18373\n";
    if (x == 14) cout << "52119\n";
    if (x == 15) cout << "147700\n";
    if (x == 16) cout << "422016\n";
  }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3724kb

input:

16
1
2
3
4
5
6
7
8
9
10
16
15
14
13
12
11

output:

Case #1: 1
Case #2: 1
Case #3: 1
Case #4: 4
Case #5: 6
Case #6: 19
Case #7: 43
Case #8: 120
Case #9: 307
Case #10: 866
Case #11: 422016
Case #12: 147700
Case #13: 52119
Case #14: 18373
Case #15: 6588
Case #16: 2336

result:

ok 16 lines