Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114238 | 包老师 | 14小鱼游泳 | C++ | Accepted | 1 MS | 272 KB | 345 | 2025-03-22 11:25:16 |
#include <bits/stdc++.h> using namespace std; int main(){ int x,n; cin>>x>>n; int d1=7-x+1;//d1第一周的天数 int b=d1-2;// 第一周游泳的天数 if(x==6||x==7){ b=0; } int zhoushu=(n-d1)/7; int d2=(n-d1)%7;//1 ,2,3,4,5,6 if(d2==6){ d2=d2-1; } int tianshu=b+zhoushu*5+d2; cout<<tianshu*250; return 0; }