| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 3817 | ElaineTang | 姐妹数对 | C++ | Wrong Answer | 0 | 1 MS | 264 KB | 230 | 2024-12-29 17:25:53 |
#include <bits/stdc++.h> using namespace std; int main() { int a,b=1,c=0,d=0,e; cin>>a; for(;b<=a;c++) { if ((b+c)%3==0 || (b+c)%7==0) { d++; } if(c>6) { c=1; b+=1; } } cout<<b+1; }