結果
問題 |
No.305 鍵(2)
|
ユーザー |
|
提出日時 | 2016-03-28 21:35:00 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 459 bytes |
コンパイル時間 | 1,480 ms |
コンパイル使用メモリ | 105,512 KB |
実行使用メモリ | 44,832 KB |
平均クエリ数 | 44.46 |
最終ジャッジ日時 | 2024-07-16 08:50:47 |
合計ジャッジ時間 | 4,655 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 3 RE * 8 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Program { public static void Main() { int key = 0; int rtn = 0; int temp = 0; while(temp < 10) { Console.WriteLine("{0:0000000000}", key); rtn = int.Parse(Console.ReadLine().Split()[0]); if (rtn == temp) { key += (int)Math.Pow(10, rtn); } else { rtn = temp+1; } temp = rtn; } } }