結果

問題 No.537 ユーザーID
ユーザー motimoti
提出日時 2018-05-20 14:12:54
言語 Perl
(5.38.2)
結果
AC  
実行時間 202 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 5,788 KB
最終ジャッジ日時 2023-09-11 00:01:32
合計ジャッジ時間 3,870 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,144 KB
testcase_01 AC 5 ms
5,216 KB
testcase_02 AC 5 ms
5,020 KB
testcase_03 AC 5 ms
5,148 KB
testcase_04 AC 5 ms
5,100 KB
testcase_05 AC 5 ms
5,024 KB
testcase_06 AC 5 ms
4,980 KB
testcase_07 AC 5 ms
5,048 KB
testcase_08 AC 5 ms
5,244 KB
testcase_09 AC 5 ms
4,968 KB
testcase_10 AC 5 ms
5,188 KB
testcase_11 AC 5 ms
5,092 KB
testcase_12 AC 5 ms
5,028 KB
testcase_13 AC 5 ms
4,972 KB
testcase_14 AC 4 ms
4,912 KB
testcase_15 AC 5 ms
4,972 KB
testcase_16 AC 5 ms
5,024 KB
testcase_17 AC 5 ms
4,992 KB
testcase_18 AC 141 ms
5,052 KB
testcase_19 AC 187 ms
4,980 KB
testcase_20 AC 162 ms
5,028 KB
testcase_21 AC 108 ms
4,892 KB
testcase_22 AC 179 ms
4,972 KB
testcase_23 AC 104 ms
5,144 KB
testcase_24 AC 34 ms
5,092 KB
testcase_25 AC 179 ms
5,144 KB
testcase_26 AC 172 ms
4,976 KB
testcase_27 AC 145 ms
5,012 KB
testcase_28 AC 79 ms
5,632 KB
testcase_29 AC 202 ms
5,692 KB
testcase_30 AC 165 ms
5,788 KB
testcase_31 AC 65 ms
5,020 KB
testcase_32 AC 68 ms
5,028 KB
testcase_33 AC 197 ms
5,308 KB
testcase_34 AC 133 ms
4,972 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#!/usr/bin/env perl

use strict;
use warnings;

my $n = <>; chomp $n;
my $c = 0;
my %h;
for (my $i = 1; $i < sqrt($n) + 1; $i++) {
  next if $n < $i;
  if ($n % $i == 0) {
    my $m = $n / $i;
    $h{"$m$i"} = 1;
    $h{"$i$m"} = 1;
  }
}
print int(keys %h);
0