Please sign in first.
Submission #68519524
Source Code Expand
#include <bits/stdc++.h>
#define SZ(x) ((int)(x).size())
#define ALL(x) begin(x), end(x)
#define REP(i, n) for (int i = 0; i < int(n); i++)
#define REP1(i, a, b) for (int i = (a); i <= int(b); i++)
#if __has_include("shik/dump.h")
#include "shik/dump.h" // IWYU pragma: keep
#else
#define dump(...) 0
#endif
using namespace std;
string conv(string s) {
if (s == "red") return "SSS";
if (s == "blue") return "FFF";
if (s == "green") return "MMM";
return "Unknown";
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
string s;
cin >> s;
cout << conv(s) << '\n';
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - AtCoder Language |
| User | shik |
| Language | C++ 23 (gcc 12.2) |
| Score | 100 |
| Code Size | 637 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3596 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample00.txt, sample01.txt |
| All | sample00.txt, sample01.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample00.txt | AC | 1 ms | 3476 KiB |
| sample01.txt | AC | 1 ms | 3596 KiB |
| testcase00.txt | AC | 1 ms | 3428 KiB |
| testcase01.txt | AC | 1 ms | 3396 KiB |
| testcase02.txt | AC | 1 ms | 3440 KiB |
| testcase03.txt | AC | 1 ms | 3424 KiB |
| testcase04.txt | AC | 1 ms | 3468 KiB |
| testcase05.txt | AC | 1 ms | 3476 KiB |
| testcase06.txt | AC | 1 ms | 3324 KiB |
| testcase07.txt | AC | 1 ms | 3328 KiB |
| testcase08.txt | AC | 1 ms | 3468 KiB |
| testcase09.txt | AC | 1 ms | 3436 KiB |
| testcase10.txt | AC | 1 ms | 3416 KiB |
| testcase11.txt | AC | 1 ms | 3452 KiB |
| testcase12.txt | AC | 1 ms | 3372 KiB |