Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
161099 格林老师 猜数字 C++ Output Limit Exceeded 29 MS 276 KB 389 2026-09-30 15:20:49

Tests(0/1):


Code:

#include <bits/stdc++.h> using namespace std; int main() { long long c; cin>>c; while(c--){ long long a,b,c; cin>>a>>b>>c; bool f=1; for (int i=1000;i<10000;i++){ if (i%a==0 && (i+1)%b==0 && (i+2)%c==0){ cout<<i<<endl; } } if (f) cout<<"Impossiple"; } return 0; }