Submission #25194652
Source Code Expand
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
void testcase(int t){
string s;
cin >> s;
if(s == "Hello,World!") cout << "AC" << endl;
else cout << "WA" << endl;
}
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
int t = 1;
if(!t) cin >> t;
for(int i=1;i<=t;i++)
testcase(i);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Your First Judge |
| User | br1 |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 377 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 3652 KiB |
Compile Error
./Main.cpp: In function ‘void testcase(int)’:
./Main.cpp:7:19: warning: unused parameter ‘t’ [-Wunused-parameter]
7 | void testcase(int t){
| ~~~~^
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample_01.txt | AC | 6 ms | 3596 KiB |
| sample_02.txt | AC | 2 ms | 3608 KiB |
| sample_03.txt | AC | 2 ms | 3496 KiB |
| test_01.txt | AC | 3 ms | 3652 KiB |
| test_02.txt | AC | 2 ms | 3504 KiB |
| test_03.txt | AC | 2 ms | 3564 KiB |
| test_04.txt | AC | 2 ms | 3508 KiB |
| test_05.txt | AC | 2 ms | 3496 KiB |
| test_06.txt | AC | 2 ms | 3504 KiB |
| test_07.txt | AC | 2 ms | 3600 KiB |