結果

問題 No.826 連絡網
ユーザー O2MTO2MT
提出日時 2020-12-12 23:29:45
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 81,824 KB
実行使用メモリ 83,076 KB
最終ジャッジ日時 2023-10-20 02:46:57
合計ジャッジ時間 3,532 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,424 KB
testcase_01 AC 37 ms
53,424 KB
testcase_02 AC 41 ms
59,956 KB
testcase_03 WA -
testcase_04 AC 44 ms
60,116 KB
testcase_05 AC 43 ms
59,988 KB
testcase_06 AC 45 ms
60,116 KB
testcase_07 AC 44 ms
60,116 KB
testcase_08 AC 43 ms
59,988 KB
testcase_09 AC 45 ms
60,116 KB
testcase_10 AC 41 ms
59,956 KB
testcase_11 AC 44 ms
60,116 KB
testcase_12 AC 114 ms
80,920 KB
testcase_13 AC 69 ms
74,648 KB
testcase_14 AC 96 ms
79,484 KB
testcase_15 AC 49 ms
62,660 KB
testcase_16 AC 74 ms
76,532 KB
testcase_17 AC 68 ms
74,656 KB
testcase_18 AC 63 ms
72,112 KB
testcase_19 AC 126 ms
81,804 KB
testcase_20 AC 123 ms
81,696 KB
testcase_21 AC 45 ms
60,116 KB
testcase_22 AC 69 ms
74,684 KB
testcase_23 AC 79 ms
78,136 KB
testcase_24 AC 56 ms
67,540 KB
testcase_25 AC 147 ms
83,048 KB
testcase_26 AC 61 ms
69,840 KB
testcase_27 AC 113 ms
81,108 KB
testcase_28 AC 98 ms
79,760 KB
testcase_29 AC 69 ms
74,632 KB
testcase_30 AC 151 ms
83,076 KB
testcase_31 AC 75 ms
75,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,P = map(int,input().split())
l = [0]*(N+1)
for i in range(2,N+1):
    for j in range(i,N+1,i):
        l[j] += 1
count = N-1
for n in range(N//2+1,N+1):
    if l[n] == 1:
        count -= 1
if l[P] == 1:
    print(1)
else:
    print(count)
0