Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4974 | 莫业祁 | 14小鱼游泳 | C++ | Accepted | 0 MS | 256 KB | 419 | 2024-10-13 12:52:52 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int x,n,cnt=0; int main(){ cin>>x>>n; for(int i=0;i<n;i++){ if((i+x)%7==0||(i+x)%7==6)continue; else cnt+=250; } cout<<cnt; return 0; }