| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 19909 | 孙喻桐 | 姐妹数对 | C++ | Accepted | 100 | 0 MS | 248 KB | 278 | 2021-05-25 20:54:58 |
#include<bits/stdc++.h> using namespace std; int ans; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ if(i!=j){ if((i+j)%3==0||(i+j)%7==0) ans++; } } } cout<<ans/2; return 0; }