結果
| 問題 | 
                            No.8005 天使のハッシュ関数
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kuuso1
                         | 
                    
| 提出日時 | 2014-12-25 23:34:04 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 36 ms / 5,000 ms | 
| コード長 | 1,760 bytes | 
| コンパイル時間 | 1,890 ms | 
| コンパイル使用メモリ | 107,136 KB | 
| 実行使用メモリ | 20,736 KB | 
| 最終ジャッジ日時 | 2024-06-12 23:30:36 | 
| 合計ジャッジ時間 | 2,509 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 14 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}
class Sol{
	public void Solve(){
		using (MD5 md5Hash = MD5.Create()){
			string hash = GetMd5Hash(md5Hash, S);
			string hash2 = GetMd5Hash(md5Hash, hash);
			Console.WriteLine(hash2);
		
		}
	}
	String S;
	public Sol(){
		S=rs();
	}
        static string GetMd5Hash(MD5 md5Hash, string input)
        {
            // Convert the input string to a byte array and compute the hash.
            byte[] data = md5Hash.ComputeHash(Encoding.UTF8.GetBytes(input));
            // Create a new Stringbuilder to collect the bytes
            // and create a string.
            StringBuilder sBuilder = new StringBuilder();
            // Loop through each byte of the hashed data 
            // and format each one as a hexadecimal string.
            for (int i = 0; i < data.Length; i++)
            {
                sBuilder.Append(data[i].ToString("x2"));
            }
            // Return the hexadecimal string.
            return sBuilder.ToString();
        }
	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(){return Console.ReadLine().Split(' ');}
	static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));}
	static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));}
	static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));}
}
            
            
            
        
            
kuuso1