結果
問題 | No.537 ユーザーID |
ユーザー | kuuso1 |
提出日時 | 2017-07-01 14:13:48 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 1,131 bytes |
コンパイル時間 | 1,180 ms |
コンパイル使用メモリ | 115,096 KB |
実行使用メモリ | 27,812 KB |
最終ジャッジ日時 | 2024-04-15 09:58:57 |
合計ジャッジ時間 | 3,211 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
27,804 KB |
testcase_01 | AC | 28 ms
27,808 KB |
testcase_02 | AC | 28 ms
27,804 KB |
testcase_03 | AC | 28 ms
25,560 KB |
testcase_04 | AC | 28 ms
23,352 KB |
testcase_05 | AC | 28 ms
26,028 KB |
testcase_06 | AC | 28 ms
25,812 KB |
testcase_07 | AC | 29 ms
25,512 KB |
testcase_08 | AC | 29 ms
25,680 KB |
testcase_09 | AC | 28 ms
27,720 KB |
testcase_10 | AC | 28 ms
25,556 KB |
testcase_11 | AC | 28 ms
25,552 KB |
testcase_12 | AC | 28 ms
27,500 KB |
testcase_13 | AC | 29 ms
27,592 KB |
testcase_14 | AC | 27 ms
23,612 KB |
testcase_15 | AC | 28 ms
25,556 KB |
testcase_16 | AC | 28 ms
25,512 KB |
testcase_17 | AC | 28 ms
27,812 KB |
testcase_18 | RE | - |
testcase_19 | RE | - |
testcase_20 | RE | - |
testcase_21 | RE | - |
testcase_22 | RE | - |
testcase_23 | RE | - |
testcase_24 | RE | - |
testcase_25 | RE | - |
testcase_26 | RE | - |
testcase_27 | RE | - |
testcase_28 | RE | - |
testcase_29 | RE | - |
testcase_30 | RE | - |
testcase_31 | RE | - |
testcase_32 | RE | - |
testcase_33 | RE | - |
testcase_34 | RE | - |
コンパイルメッセージ
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; using System.Collections.Generic; using System.Linq; using System.Text; class TEST{ static void Main(){ Sol mySol =new Sol(); mySol.Solve(); } } class Sol{ public void Solve(){ HashSet<String> H = new HashSet<String>(); for(long i=1;i*i<=N;i++){ if(N % i != 0) continue; var s0 = i.ToString(); var s1 = (N / i).ToString(); H.Add(s0+s1); H.Add(s1+s0); } Console.WriteLine(H.Count); } long N; public Sol(){ N = ri(); } static String rs(){return Console.ReadLine();} static int ri(){return int.Parse(Console.ReadLine());} static long rl(){return long.Parse(Console.ReadLine());} static double rd(){return double.Parse(Console.ReadLine());} static String[] rsa(char sep=' '){return Console.ReadLine().Split(sep);} static int[] ria(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>int.Parse(e));} static long[] rla(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>long.Parse(e));} static double[] rda(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>double.Parse(e));} }