提出 #42130484


ソースコード 拡げる

#include<bits/stdc++.h>
using namespace std;
int main()
{
  map<char,int>mp;
  mp['A']=0,mp['B']=3;
  mp['C']=4,mp['D']=8;
  mp['E']=9,mp['F']=14;
  mp['G']=23;
  char a,b;
  cin>>a>>b;
  cout<<abs(mp[b]-mp[a]);
  return 0;
}

提出情報

提出日時
問題 B - ABCDEFG
ユーザ Kary
言語 C++ (GCC 9.2.1)
得点 200
コード長 240 Byte
結果 AC
実行時間 7 ms
メモリ 3576 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 7 ms 3576 KiB
00_sample_01.txt AC 2 ms 3496 KiB
00_sample_02.txt AC 2 ms 3428 KiB
01_handmade_00.txt AC 2 ms 3404 KiB
01_handmade_01.txt AC 2 ms 3496 KiB
01_handmade_02.txt AC 5 ms 3548 KiB
02_random_00.txt AC 2 ms 3456 KiB
02_random_01.txt AC 2 ms 3408 KiB
02_random_02.txt AC 2 ms 3372 KiB
02_random_03.txt AC 2 ms 3556 KiB
02_random_04.txt AC 2 ms 3572 KiB
02_random_05.txt AC 2 ms 3560 KiB
02_random_06.txt AC 2 ms 3372 KiB
02_random_07.txt AC 3 ms 3480 KiB