1 条题解

  • 0
    @ 2025-4-12 22:06:17

    C++ :

    #include<iostream>
    using namespace std;
    
    int main(){
        char start,end;
    	cin>>start;
    	cin>>end;
    	if(start<end)
    	    cout<<0.3*(end-start);
    	else
    		cout<<0.3*(('J'-start)+(end-'A')+1);
    return 0;
    }
    
    • 1

    信息

    ID
    2860
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    (无)
    递交数
    0
    已通过
    0
    上传者