60代码:

#include<bits.stdc++.h>
using namespace std;
int main(){
     int n,x,y=0,o=0,s=0;
     cin>>x>>n;
     if(x!=6 && x!=7){
        s=1;
     }
    while(y!=n){       
    y++;
    x++;
    if(x==6 || x==7){
        continue;
    }else{
    o=o+250;
    }
    if(x==8){
        x=1;
    }
    }
    cout<<o;
    return 0
}

0 条评论

目前还没有评论...