QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#49652#4413. Cyber LanguagelqhsmashWA 2ms3548kbC++11691b2022-09-22 10:35:152022-09-22 10:35:18

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-09-22 10:35:18]
  • 评测
  • 测评结果:WA
  • 用时:2ms
  • 内存:3548kb
  • [2022-09-22 10:35:15]
  • 提交

answer

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

const int N = 2e5 + 50;

char s[N];

int main() {
#ifdef LOCAL
    clock_t c1 = clock();
    freopen("in.in", "r", stdin);
    freopen("out.out", "w", stdout);
#endif
    // ===================================================    
    int T;
    scanf ("%d", &T);
    getchar ();
    while (T --) {
        gets (s);
        if (*s == 'k') printf("KK\n");
        else if (*s == 'd') printf("DDW\n");
        else printf("SMWY\n");
    }
    // ===================================================    
#ifdef LOCAL
    cerr << "Time Used: " << clock() - c1 << "ms" << endl;
#endif
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 3548kb

input:

10
qing lian xi wo
bao gao
wo dai ni men da
da shi suo qu
bao dao
yong yuan de shen
xiao si wo le
shi zhen de
ni shuo de dou dui
yin yang guai qi

output:

SMWY
SMWY
SMWY
DDW
SMWY
SMWY
SMWY
SMWY
SMWY
SMWY

result:

wrong answer 1st lines differ - expected: 'QLXW', found: 'SMWY'