QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#385228 | #5315. Yummy Triangular Pizza | wsyear | AC ✓ | 0ms | 3724kb | C++14 | 732b | 2024-04-10 16:44:19 | 2024-04-10 16:44:19 |
Judging History
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";
}
}
详细
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