Submission #2950888


Source Code Expand

Copy
#include <bits/stdc++.h>

using namespace std;

using int64 = long long;

int main() {
  string S;
  cin >> S;
  bool f = false;
  for(int i = 2; i + 1 < S.size(); i++) {
    if(S[i] == 'C') {
      S[i] = 'c';
      f = true;
      break;
    }
  }
  if(f) {
    for(int i = 1; i < S.size(); i++) {
      if(isupper(S[i])) {
        cout << "WA" << endl;
        return 0;
      }
    }
    cout << "AC" << endl;
  } else {
    cout << "WA" << endl;
  }
}

Submission Info

Submission Time
Task B - AcCepted
User ei13333
Language C++14 (GCC 5.4.1)
Score 0
Code Size 486 Byte
Status
Exec Time 1 ms
Memory 256 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 a01, a02, a03, a04, a05
All 0 / 200 a01, a02, a03, a04, a05, b06, b07, b08, b09, b10, b11, b12, b13, b14, b15, b16
Case Name Status Exec Time Memory
a01 1 ms 256 KB
a02 1 ms 256 KB
a03 1 ms 256 KB
a04 1 ms 256 KB
a05 1 ms 256 KB
b06 1 ms 256 KB
b07 1 ms 256 KB
b08 1 ms 256 KB
b09 1 ms 256 KB
b10 1 ms 256 KB
b11 1 ms 256 KB
b12 1 ms 256 KB
b13 1 ms 256 KB
b14 1 ms 256 KB
b15 1 ms 256 KB
b16 1 ms 256 KB