QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#385237#5315. Yummy Triangular Pizzacmk666AC ✓11ms9864kbPython3156b2024-04-10 16:49:542024-04-10 16:49:54

Judging History

This is the latest submission verdict.

  • [2024-04-10 16:49:54]
  • Judged
  • Verdict: AC
  • Time: 11ms
  • Memory: 9864kb
  • [2024-04-10 16:49:54]
  • Submitted

answer

for _ in range(int(input())): print(f'Case #{_ + 1}: {[1, 1, 1, 4, 6, 19, 43, 120, 307, 866, 2336, 6588, 18373, 52119, 147700, 422016][int(input()) - 1]}') 

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 11ms
memory: 9864kb

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