Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4973 | 莫业祁 | 14小鱼游泳 | C++ | Wrong Answer | 0 MS | 256 KB | 420 | 2024-10-13 12:52:01 |
#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=1;i<=n;i++){ if((i+x)%7==0||(i+x)%7==6)continue; else cnt+=250; } cout<<cnt; return 0; }
------Input------
2 47
------Answer-----
8500
------Your output-----
8250