Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
3827 ElaineTang 姐妹数对 C++ Wrong Answer 0 0 MS 268 KB 230 2024-12-29 17:28:34

Tests(0/2):


#include <bits/stdc++.h> using namespace std; int main() { int a,b=1,c=0,d=0,e; cin>>a; for(;b<=a+1;c++) { if ((b+c)%3==0 || (b+c)%7==0) { d++; } if(c>6) { c=0; b+=1; } } cout<<b; }


Judgement Protocol: