日期:2014-05-17 浏览次数:20872 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("problem1(3):");
foreach (var item in problem1(3))
{
Console.WriteLine(string.Join(",", item.Select(x => x.ToString()).ToArray()));
}
Console.WriteLine("problem1(4):");
foreach (var item in problem1(4))
{
Console.WriteLine(string.Join(",", item.Select(x => x.ToString()).ToArray()));
}
Console.WriteLine("problem2(133427):");
Console.WriteLine(problem2(133427));