1 条题解

  • 0
    @ 2023-6-11 12:16:43

    C :

    #include<stdio.h>
    void main()
    {
    	int t,m,n;
    	scanf("%d%d",&m,&n);
    	t=(n-m)*30;
    	printf("%d\n",t);
    
      }  
    

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    
    	int m,n;
    	cin>>m>>n;
    	cout<<(n-m)*30<<endl;
    	
    
    
    	return 0;
    }
    
    

    Python :

    m,n=map(int,input().split())
    if n-m!=0:
        s=(n-m)*30
    if n-m==0:
        s=360
    print(s)
    
    
    • 1

    信息

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