結果

問題 No.537 ユーザーID
ユーザー boya978
提出日時 2020-05-02 22:10:44
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 500 bytes
コンパイル時間 1,104 ms
コンパイル使用メモリ 112,524 KB
実行使用メモリ 25,932 KB
最終ジャッジ日時 2024-12-31 20:25:51
合計ジャッジ時間 3,430 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 9 RE * 17
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;
using System.Collections.Generic;
public class Hello{
    public static void Main(){
        
            int n = int.Parse(Console.ReadLine());
            var xs = new List<string>();
            
            for(int i=1;i<=n;i++)
            {
                if(n%i==0)
                {
                    xs.Add((n/i).ToString() + i.ToString());        
                }
            }
            
            Console.WriteLine(xs.Count);    
        
    }
}
0