| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 81692 | 徐睿杨 | class | C++ | Accepted | 100 | 1 MS | 252 KB | 236 | 2023-08-09 20:57:24 |
#include<bits/stdc++.h> using namespace std; int K,x,y,p,q; int ans; int main(){ cin>>K>>x>>y>>p>>q; for(int i=1;i<=K;i++){ if((i%(x+y)==0||i%(x+y)>x)&&(i%(p+q)==0||i%(p+q)>p)){ ans++; } } cout<<ans; return 0; }