結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-08 09:49:57 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 585 bytes |
| コンパイル時間 | 5,549 ms |
| コンパイル使用メモリ | 103,424 KB |
| 実行使用メモリ | 20,096 KB |
| 最終ジャッジ日時 | 2024-12-15 11:28:06 |
| 合計ジャッジ時間 | 7,768 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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.Collections.Generic;
using System.Linq;
namespace _0446
{
class Program
{
static void Main(string[] args)
{
var n = int.Parse(Console.ReadLine());
var ans = new HashSet<string>();
for (var i = 1; i <= n; i++)
{
if (n % i == 0)
{
ans.Add((n / i).ToString() + i.ToString());
ans.Add(i.ToString() + (n / i).ToString());
}
}
Console.WriteLine(ans.Count());
}
}
}