結果

問題 No.784 「,(カンマ)」
ユーザー CroweaCrowea
提出日時 2019-03-24 23:51:46
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 517 bytes
コンパイル時間 898 ms
コンパイル使用メモリ 107,112 KB
実行使用メモリ 25,980 KB
最終ジャッジ日時 2024-04-15 06:53:48
合計ジャッジ時間 1,833 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
23,800 KB
testcase_01 AC 24 ms
23,980 KB
testcase_02 AC 24 ms
23,796 KB
testcase_03 WA -
testcase_04 AC 25 ms
23,860 KB
testcase_05 AC 24 ms
24,056 KB
testcase_06 AC 25 ms
24,056 KB
testcase_07 AC 25 ms
23,804 KB
testcase_08 AC 25 ms
25,664 KB
testcase_09 AC 25 ms
25,980 KB
testcase_10 WA -
testcase_11 AC 25 ms
23,980 KB
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;

namespace yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            var lst = new List<int>();

            int div = 1000;
            while (N % div != 0)
            {                                
                lst.Add(N % div);
                N /= div;
            }

            lst.Reverse();
            Console.WriteLine(string.Join(",", lst));
        }
    }
}
0