結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,516 KB
testcase_01 WA -
testcase_02 AC 40 ms
60,076 KB
testcase_03 AC 44 ms
60,236 KB
testcase_04 AC 43 ms
60,236 KB
testcase_05 AC 43 ms
60,108 KB
testcase_06 AC 43 ms
60,236 KB
testcase_07 AC 44 ms
60,236 KB
testcase_08 AC 43 ms
60,108 KB
testcase_09 AC 47 ms
60,236 KB
testcase_10 AC 41 ms
60,076 KB
testcase_11 AC 43 ms
60,236 KB
testcase_12 AC 110 ms
81,040 KB
testcase_13 AC 67 ms
74,768 KB
testcase_14 AC 91 ms
79,604 KB
testcase_15 AC 47 ms
62,780 KB
testcase_16 AC 73 ms
76,640 KB
testcase_17 AC 68 ms
74,776 KB
testcase_18 AC 62 ms
72,232 KB
testcase_19 AC 120 ms
81,920 KB
testcase_20 AC 119 ms
81,816 KB
testcase_21 AC 44 ms
60,236 KB
testcase_22 AC 68 ms
74,804 KB
testcase_23 AC 77 ms
78,372 KB
testcase_24 AC 55 ms
67,660 KB
testcase_25 AC 139 ms
83,168 KB
testcase_26 AC 59 ms
69,960 KB
testcase_27 AC 110 ms
81,228 KB
testcase_28 AC 95 ms
79,876 KB
testcase_29 AC 67 ms
74,752 KB
testcase_30 AC 140 ms
83,196 KB
testcase_31 AC 73 ms
75,844 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
print(count)
0