提出 #42124518


ソースコード 拡げる

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve(){
	
}
int main(){
	ios_base::sync_with_stdio(false); cin.tie(NULL);
	map<char,int>m;
	m[0] = 0;
	m[1] = 3;
	m[2] = 4;
	m[3] = 8;
	m[4] = 9;
	m[5] = 14;
	m[6] = 23;
	char a,b; cin>>a>>b;
	cout<<abs(m[a-'A']-m[b-'A']);
}

提出情報

提出日時
問題 B - ABCDEFG
ユーザ belphegor
言語 C++ (GCC 9.2.1)
得点 200
コード長 315 Byte
結果 AC
実行時間 6 ms
メモリ 3640 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 14
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 02_random_03.txt, 02_random_04.txt, 02_random_05.txt, 02_random_06.txt, 02_random_07.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 6 ms 3640 KiB
00_sample_01.txt AC 3 ms 3496 KiB
00_sample_02.txt AC 2 ms 3612 KiB
01_handmade_00.txt AC 2 ms 3628 KiB
01_handmade_01.txt AC 2 ms 3612 KiB
01_handmade_02.txt AC 2 ms 3628 KiB
02_random_00.txt AC 2 ms 3560 KiB
02_random_01.txt AC 2 ms 3560 KiB
02_random_02.txt AC 2 ms 3512 KiB
02_random_03.txt AC 2 ms 3612 KiB
02_random_04.txt AC 2 ms 3612 KiB
02_random_05.txt AC 2 ms 3496 KiB
02_random_06.txt AC 2 ms 3612 KiB
02_random_07.txt AC 3 ms 3616 KiB