Submission #6052385


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;

int main()
{
  ios::sync_with_stdio(0);
  string s;
  cin >> s;
  cout << (s[0] == s[1] || s[1] == s[2] || s[2] == s[3] ? "Bad" : "Good");
}

Submission Info

Submission Time
Task A - Security
User flashmt
Language C++14 (GCC 5.4.1)
Score 100
Code Size 198 Byte
Status AC
Exec Time 9 ms
Memory 764 KB

Judge Result

Set Name Sample Subtask1
Score / Max Score 0 / 0 100 / 100
Status
AC × 4
AC × 13
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt
Subtask1 sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt, sub1_05.txt, sub1_06.txt, sub1_07.txt, sub1_08.txt, sub1_09.txt
Case Name Status Exec Time Memory
sample_01.txt AC 9 ms 764 KB
sample_02.txt AC 1 ms 256 KB
sample_03.txt AC 2 ms 256 KB
sample_04.txt AC 1 ms 256 KB
sub1_01.txt AC 1 ms 256 KB
sub1_02.txt AC 1 ms 256 KB
sub1_03.txt AC 1 ms 256 KB
sub1_04.txt AC 1 ms 256 KB
sub1_05.txt AC 1 ms 256 KB
sub1_06.txt AC 1 ms 256 KB
sub1_07.txt AC 1 ms 256 KB
sub1_08.txt AC 1 ms 256 KB
sub1_09.txt AC 1 ms 256 KB