1 solutions

  • 0
    @ 2025-7-14 11:09:32
    #include<bits/stdc++.h>
    using namespace std;
    int d[200]={0,3,4,8,9,14,23}; 
    int main()
    {
    	char a,b;
    	cin>>a>>b;
    	int x=a-'A',y=b-'A';
    	cout<<abs(d[y]-d[x]);
    	return 0;
    }
    
    

    Information

    ID
    2434
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    16
    Accepted
    3
    Uploaded By