Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148157 徐启航 猜数字 C++ Output Limit Exceeded 1 MS 264 KB 350 2026-02-09 19:34:11

Tests(0/1):


Code:

#include<iostream> using namespace std; int main(){ int x,a,b,c,C; cin>>C; for(int i=1;i<=C;i++){ cin>>a>>b>>c; for(int j=1000;j<=9999;j++){ if(j%a==0&&(j+1)%b==0&&(j+2)%c==0) cout<<j<<endl; else{ cout<<"Impossible"<<endl; } } }return 0; }