ログインしてください。
提出 #76029641
ソースコード 拡げる
#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;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - 459 |
| ユーザ | wallacewan |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 200 |
| コード長 | 668 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3936 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 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 |