| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 48502 | 石利伟 | 姐妹数对 | C++ | Accepted | 100 | 0 MS | 252 KB | 207 | 2022-07-15 22:18:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,ans=0; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<i;j++){ if((i+j)%3==0||(i+j)%7==0)ans++; } } cout<<ans; return 0; }