| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 128735 | 梁煜然 | 不定方程的解 | C++ | Wrong Answer | 50 | 0 MS | 248 KB | 235 | 2024-01-26 09:11:06 |
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int s=0; for(int i=0;i<=100;i++){ for(int j=0;j<=100;j++){ if(a*i+b*j==c||a*j+b*i==c){ s+=1; } } } cout<<s; return 0; }