| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 162649 | 陈襗葳 | 猜数字 | C++ | Accepted | 9 MS | 268 KB | 359 | 2026-10-18 10:04:25 |
#include<bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int a,b,c; cin>>a>>b>>c; int ans=-1; for(int x=1000;x<=9999;x++){ if(x % a == 0&&(x+1) % b == 0&&(x+2) % c == 0){ ans=x; break; } } if(ans!=-1){ cout<<ans<<endl; }else{ cout<<"Impossible"<<endl; } } return 0; }