結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-02 22:23:05 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 507 bytes |
| コンパイル時間 | 931 ms |
| コンパイル使用メモリ | 107,776 KB |
| 実行使用メモリ | 27,796 KB |
| 最終ジャッジ日時 | 2024-12-31 21:33:37 |
| 合計ジャッジ時間 | 3,175 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 RE * 17 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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 HashSet<string>();
for(int i=1;i<=n;i++)
{
if(n%i==0)
{
Xs.Add((n/i).ToString() + i.ToString());
}
}
Console.WriteLine(Xs.Count);
}
}