結果
問題 |
No.305 鍵(2)
|
ユーザー |
|
提出日時 | 2016-03-28 21:28:36 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 461 bytes |
コンパイル時間 | 2,065 ms |
コンパイル使用メモリ | 107,820 KB |
実行使用メモリ | 45,224 KB |
平均クエリ数 | 21.77 |
最終ジャッジ日時 | 2024-07-16 08:50:35 |
合計ジャッジ時間 | 5,027 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 5 RE * 6 |
コンパイルメッセージ
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, 9-rtn); } else { rtn = temp+1; } temp = rtn; } } }