| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 81688 | 徐睿杨 | class | C++ | Wrong Answer | 0 | 1 MS | 248 KB | 234 | 2023-08-09 20:54:29 |
#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; }