// 坤 一 [SmileOnce] smileonce@126.com 2004-7-23 // Copyright Reprint, please indicate http://blog.9cbs.net/smileonce/ math_t.cpp: Defines the entry point for the console APPLICATION.
// I will demonstrate the combination of efficiency, correctness, and easy maintenance.
/ / Who is lost brick? I am not a glass, I am, I ran ~~~
#include "stdafx.h"
#include
#include
Using namespace std;
INT _Tmain (int Argc, _tchar * argv [])
{
Set num_set;
For (int i = 2; i <= 9; i )
{
INT MAX_TRY = 9876 / i;
For (int J = 1234; j
{
INT k = i * j;
IF (k> 10000) Continue;
Num_set.clear ();
Num_set.insert (0);
Num_set.insert (i);
Num_set.insert (j / 1000);
Num_set.insert (j / 100% 10);
Num_set.insert (j / 10% 10);
Num_set.insert (j% 10);
Num_set.insert (k / 1000);
Num_set.insert (k / 100% 10);
Num_set.insert (k / 10% 10);
Num_set.insert (k% 10);
IF (Num_Set.size () == 10)
COUT << j << "*" << i << "=" << k << endl;
}
}
Return 0;
}