算法:12?56? * 123 =154?4987 求问号的值
来源:互联网 发布:手机网页广告过滤 知乎 编辑:程序博客网 时间:2024/05/22 04:33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
XiangCheng();
}
//12?56? * 123 =154?4987
public static void XiangCheng()
{
for (int i = 0; i <= 9; i++)
{
for (int j = 0; j <= 9; j++)
{
for (int h = 0; h <= 9; h++)
{
if (Convert.ToInt32(12*10000+i*1000+56*10+j)*123==154*100000+h*10000+4987)
{
Console.WriteLine(i.ToString()+"\n"+j.ToString()+"\n"+h.ToString());
}
}
}
}
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
XiangCheng();
}
//12?56? * 123 =154?4987
public static void XiangCheng()
{
for (int i = 0; i <= 9; i++)
{
for (int j = 0; j <= 9; j++)
{
for (int h = 0; h <= 9; h++)
{
if (Convert.ToInt32(12*10000+i*1000+56*10+j)*123==154*100000+h*10000+4987)
{
Console.WriteLine(i.ToString()+"\n"+j.ToString()+"\n"+h.ToString());
}
}
}
}
Console.ReadKey();
}
}
}
- 算法:12?56? * 123 =154?4987 求问号的值
- 求多项式的值与求幂的快速算法
- 写一算法,求n=12~20时最优的StepVegas值
- 编程求一些值的算法
- 概率算法求定积分的值
- KMP算法之求next 的值
- 迭代算法求sinx的值
- 求nextval数组值的简便算法
- [算法]求最大公约数的算法
- 求最大公约数的算法
- 求计算器的算法
- 求子集的算法
- 求最大公约数的算法
- 求最大公约数的算法
- 求素数的算法
- 求最大公约数的算法
- 求最大公约数的算法
- 求素数的算法
- 2012.6.3显示接口枚举,结构体
- 第十六周上机任务3
- 找规律:1,1,2,3,5,8,13,21求第三十个数
- 2012.6.3ref 用法
- 黑马程序员_java学习笔记四
- 算法:12?56? * 123 =154?4987 求问号的值
- HDU 1003 Max Sum
- php优化
- 第十六周实验报告1
- 2012.6.3关于ReferenceEquls 和Equls
- 带感应系统的彩票选号器(详解)
- SQL 连接的定义
- IE9 不能显示本地图片问题
- warning: function declaration isn't a prototype