标签:cout mes info int fine width mic name 模拟
#include<iostream> #include<cstring> #include<cstdio> #include<algorithm> #define N 1000 #define M 1000 using namespace std; int time[10]; void get(int x) { time[x%10]++; time[x/10%10]++; time[x/100]++; } int main() { for(int i=100;i<=333;i++) { int x=i,y=i*2,z=i*3; memset(time,0,sizeof(time)); get(x); get(y); get(z); bool flag=true; for(int j=1;j<=9;j++) if(time[j]!=1) flag=false; if(flag) { cout<<x<<‘ ‘<<y<<‘ ‘<<z<<endl; } } }
标签:cout mes info int fine width mic name 模拟
原文地址:https://www.cnblogs.com/liusu123456/p/12212537.html