結果
問題 |
No.305 鍵(2)
|
ユーザー |
![]() |
提出日時 | 2017-05-25 19:11:11 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 1,058 bytes |
コンパイル時間 | 3,504 ms |
コンパイル使用メモリ | 113,560 KB |
実行使用メモリ | 42,984 KB |
平均クエリ数 | 48.69 |
最終ジャッジ日時 | 2024-07-16 13:47:53 |
合計ジャッジ時間 | 3,459 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 RE * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; namespace Yuki { class Program { static void Main(string[] args) { int a = 0; int k = 1; while (true) { int ff = 0; for (int i = 0; i <= 9; i++) { Console.WriteLine((a + (i * k)).ToString("0000000000")); int f = int.Parse(Console.ReadLine().Split()[0]); if (f == 10) return; if (i == 0) { ff = f; } else { if (ff < f) { a += (i * k); k *= 10; break; } if (ff > f) { k *= 10; break; } } } } } } }