結果

問題 No.537 ユーザーID
ユーザー pressedkonbupressedkonbu
提出日時 2017-07-02 22:57:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 332 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2024-04-15 12:44:39
合計ジャッジ時間 4,700 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,880 KB
testcase_01 AC 30 ms
10,880 KB
testcase_02 AC 30 ms
10,880 KB
testcase_03 AC 30 ms
10,880 KB
testcase_04 AC 30 ms
10,880 KB
testcase_05 AC 30 ms
11,008 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 30 ms
10,880 KB
testcase_09 AC 30 ms
10,880 KB
testcase_10 AC 30 ms
10,880 KB
testcase_11 AC 30 ms
10,880 KB
testcase_12 AC 30 ms
10,880 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 31 ms
10,752 KB
testcase_16 AC 31 ms
10,880 KB
testcase_17 WA -
testcase_18 AC 176 ms
11,008 KB
testcase_19 AC 240 ms
10,880 KB
testcase_20 AC 206 ms
10,880 KB
testcase_21 AC 141 ms
10,880 KB
testcase_22 AC 215 ms
10,880 KB
testcase_23 AC 140 ms
10,880 KB
testcase_24 AC 66 ms
10,880 KB
testcase_25 AC 212 ms
11,008 KB
testcase_26 AC 244 ms
10,880 KB
testcase_27 AC 183 ms
10,880 KB
testcase_28 AC 105 ms
11,008 KB
testcase_29 AC 230 ms
11,136 KB
testcase_30 AC 198 ms
11,136 KB
testcase_31 WA -
testcase_32 AC 109 ms
10,880 KB
testcase_33 WA -
testcase_34 AC 173 ms
10,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
count = 0
ans = list()
for i in range(1, math.floor(math.sqrt(N))+1):
	q = N/i
	if q.is_integer(): #割り切れるか判定
		ans.append(i)
		ans.append(int(q))
for i in range(0, len(ans), 2):
	if str(ans[i]) + str(ans[i+1]) == str(ans[i+1]) + str(ans[i]):
		count += 1
	else:
		count += 2
print(count)
0