Out of Memory

本ブログは更新を停止しました。Aerieをよろしくお願いいたします。

目次

Blog 利用状況

ニュース

2009年3月31日
更新を停止しました。引き続きAerieを御愛顧くださいませ。
2009年2月3日
原則としてコメント受付を停止しました。コメントはAerieまでお願いいたします。
詳細は2月3日のエントリをご覧ください。
2008年7月1日
Microsoft MVP for Developer Tools - Visual C++ を再受賞しました。
2008年2月某日
MVPアワードがVisual C++に変更になりました。
2007年10月23日
blogタイトルを変更しました。
2007年7月1日
Microsoft MVP for Windows - SDKを受賞しました!
2007年6月20日
スキル「ニュース欄ハック」を覚えた!
2006年12月14日
記念すべき初エントリ
2006年12月3日
わんくま同盟に加盟しました。

カレンダー

中の人

αετο? / aetos / あえとす

シャノン? 誰それ。

顔写真

埼玉を馬鹿にする奴は俺が許さん。

基本的に知ったかぶり。興味を持った技術に手を出して、ちょっと齧りはするものの、それを応用して何か形にするまでは及ばずに飽きて放り出す人。

書庫

日記カテゴリ

おもろー!

パクリ元:3のつく数字だけ

using System;
using System.Text;

namespace NabeAtzz
{
    class Program
    {
        static void Main(string[] args)
        {
            for (int i = 1; i <= 40; ++i)
            {
                if( IsAho( i, 3 ) )
                {
                    Console.WriteLine(Aho(i));
                }
                else
                {
                    Console.WriteLine(i);
                }
            }

            Console.WriteLine("ヽ(∴`┏Д┓´)ノ彡 < オモロー!");
        }

        static readonly string[] nums = new string[] {
            string.Empty, "いち", "に", "さぁん", "よぉん", "ごぉ", "ろぉく", "なな", "はぁち", "きゅう" };

        static bool IsAho(int number, int prime )
        {
            return (number % prime == 0 || number % 10 == prime || number / 10 == prime);
        }

        static string Aho(int number)
        {
            StringBuilder sb = new StringBuilder("ヽ(∴`┏Д┓´)ノ彡 < ");
            if (number >= 20)
            {
                sb.Append( nums[ number / 10 ] );
            }

            if( number >= 10 )
            {
                sb.Append("じゅ");
                if (number < 20)
                {
                    sb.Append("~");
                }
            }

            sb.Append( nums [ number % 10 ] );
            return sb.ToString();
        }
    }
}

投稿日時 : 2008年5月14日 16:29

Feedback

# re: おもろー! 2008/05/14 17:27 ひろえむ

http://blogs.wankuma.com/hirom/archive/2008/01/01/115636.aspx

# re: おもろー! 2008/05/14 17:47 シャノン

あぁ、もう誰かやってると思ったさ!

# re: おもろー! 2008/05/14 23:06 st.lain

折角だからOS付属の音声認識君で発話させてみるとか。

# lsfTdlqwSRf 2011/11/28 20:27 http://www.spytown.com/

Thanks for the article! I hope the author does not mind if I use it for my course work!...

# soJfilUgmydMm 2011/12/16 0:52 http://www.yacanna.com/

Excellent! Got a real pleasure..!

# sJfbMzwzvKpLYJfQyiD 2011/12/26 22:57 http://www.discreetpharmacist.com/ita/index.asp

See it for the first time!!...

# UirJtzEuGuQCC 2011/12/27 5:55 http://www.hansensurf.com

I must admit, the webmaster is a cool guy..!

# UGeyfDJkGkPtkXJVq 2011/12/27 5:59 http://www.hansensurf.com

The Author is crazy..!

# dOscEawjapDNar 2011/12/28 2:51 http://www.seokiwi.com

I read online (computer problems) positive feedback about your resource. Didnt even believe it, and now saw myself. It turned out that I was not fooled!...

# vmVkmtiPlxfIZo 2011/12/29 2:42 http://www.seokiwi.com/

I serched through the internet and got here. What a wonderful invention of the mankind. With the help of the network you communicate, learn, read !... That helped us to get acquainted!...

# sfGltAgAiSlcHeet 2012/01/14 2:50 http://www.avidelectrical.com.au/

comment3

タイトル
名前
Url
コメント