Submission #76029641
Source Code Expand
#include<bits/stdc++.h>
using namespace std;
#define int long long
const int N=1000+5;
bool st;
int n;string s[N];
bool ed;
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
cerr<<(double)(&st-&ed)/1024/1024<<'\n';
cin>>n;
for(int i=1;i<=n;i++) {
cin>>s[i];
if(s[i][0]>='a'&&s[i][0]<='c') cout<<2;
if(s[i][0]>='d'&&s[i][0]<='f') cout<<3;
if(s[i][0]>='g'&&s[i][0]<='i') cout<<4;
if(s[i][0]>='j'&&s[i][0]<='l') cout<<5;
if(s[i][0]>='m'&&s[i][0]<='o') cout<<6;
if(s[i][0]>='p'&&s[i][0]<='s') cout<<7;
if(s[i][0]>='t'&&s[i][0]<='v') cout<<8;
if(s[i][0]>='w'&&s[i][0]<='z') cout<<9;
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - 459 |
| User | wallacewan |
| Language | C++23 (GCC 15.2.0) |
| Score | 200 |
| Code Size | 668 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3936 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_00.txt, example_01.txt |
| All | example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_00.txt | AC | 1 ms | 3788 KiB |
| example_01.txt | AC | 1 ms | 3808 KiB |
| hand_00.txt | AC | 1 ms | 3740 KiB |
| hand_01.txt | AC | 1 ms | 3908 KiB |
| hand_02.txt | AC | 1 ms | 3936 KiB |
| hand_03.txt | AC | 1 ms | 3884 KiB |
| hand_04.txt | AC | 1 ms | 3832 KiB |
| hand_05.txt | AC | 1 ms | 3808 KiB |
| random_00.txt | AC | 1 ms | 3816 KiB |
| random_01.txt | AC | 1 ms | 3844 KiB |
| random_02.txt | AC | 1 ms | 3856 KiB |
| random_03.txt | AC | 1 ms | 3756 KiB |
| random_04.txt | AC | 1 ms | 3868 KiB |
| random_05.txt | AC | 1 ms | 3820 KiB |
| random_06.txt | AC | 1 ms | 3856 KiB |
| random_07.txt | AC | 1 ms | 3836 KiB |
| random_08.txt | AC | 1 ms | 3908 KiB |
| random_09.txt | AC | 1 ms | 3936 KiB |
| random_10.txt | AC | 1 ms | 3936 KiB |
| random_11.txt | AC | 1 ms | 3832 KiB |