mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
Update: Rename folder name to XSMOJ
This commit is contained in:
23
XSMOJ/小鱼的航程.cpp
Normal file
23
XSMOJ/小鱼的航程.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
#include <ctime>
|
||||
#include <cmath>
|
||||
using namespace std;
|
||||
int main(){
|
||||
int a,b,sum=0;
|
||||
cin >>a>>b;
|
||||
int c=a;
|
||||
for(int i=a;i<=a+b-1;i++){
|
||||
if(c>=7){
|
||||
c=1;
|
||||
}
|
||||
if(c>=1 && c<=5){
|
||||
sum+=250;
|
||||
}
|
||||
c++;
|
||||
}
|
||||
cout <<sum;
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user