Submission #22633793
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
int main () {
string S;
cin >> S;
int Ocount = 0;
int Xcount = 0;
int Qcount = 0;
for (int i = 0; i < 10; i++) {
if (S.at(i) == 'o') {
Ocount++;
}
else if (S.at(i) == 'x') {
Xcount++;
}
else {
Qcount++;
}
}
if (Ocount > 4 || Xcount == 9) {
cout << "0" << endl;
}
if (Ocount == 4) {
cout << 24 << endl;
}
int OQ = Ocount + Qcount;
if (Ocount == 3) {
cout << 24 * OQ - 36 << endl;
}
if (Ocount == 2) {
cout << 12 * OQ * OQ << endl;
}
if (Ocount == 1) {
cout << 4 * OQ * OQ * OQ << endl;
}
if (Ocount == 0) {
cout << OQ * OQ * OQ * OQ << endl;
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | C - Secret Number |
| User | Awes |
| Language | C++ (GCC 9.2.1) |
| Score | 0 |
| Code Size | 880 Byte |
| Status | WA |
| Exec Time | 6 ms |
| Memory | 3632 KiB |
Judge Result
| Set Name | Sample | All | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 0 / 300 | ||||||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt, example2.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, example0.txt, example1.txt, example2.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 6 ms | 3416 KiB |
| 001.txt | AC | 2 ms | 3476 KiB |
| 002.txt | WA | 2 ms | 3628 KiB |
| 003.txt | AC | 1 ms | 3632 KiB |
| 004.txt | WA | 2 ms | 3600 KiB |
| 005.txt | AC | 1 ms | 3504 KiB |
| 006.txt | AC | 2 ms | 3556 KiB |
| 007.txt | WA | 2 ms | 3580 KiB |
| 008.txt | AC | 4 ms | 3600 KiB |
| 009.txt | WA | 2 ms | 3504 KiB |
| 010.txt | AC | 2 ms | 3552 KiB |
| 011.txt | AC | 3 ms | 3600 KiB |
| 012.txt | AC | 2 ms | 3528 KiB |
| 013.txt | WA | 2 ms | 3416 KiB |
| 014.txt | WA | 2 ms | 3556 KiB |
| 015.txt | WA | 2 ms | 3552 KiB |
| example0.txt | AC | 3 ms | 3424 KiB |
| example1.txt | AC | 4 ms | 3500 KiB |
| example2.txt | WA | 2 ms | 3556 KiB |