結果
問題 | No.1809 Divide NCK |
ユーザー | U S |
提出日時 | 2022-01-14 22:07:27 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 783 bytes |
コンパイル時間 | 161 ms |
コンパイル使用メモリ | 82,748 KB |
実行使用メモリ | 63,344 KB |
最終ジャッジ日時 | 2024-04-30 14:58:51 |
合計ジャッジ時間 | 3,570 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
61,328 KB |
testcase_01 | AC | 50 ms
61,568 KB |
testcase_02 | AC | 50 ms
62,384 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 51 ms
61,788 KB |
testcase_08 | AC | 50 ms
61,196 KB |
testcase_09 | WA | - |
testcase_10 | AC | 52 ms
62,080 KB |
testcase_11 | AC | 52 ms
61,292 KB |
testcase_12 | AC | 50 ms
62,072 KB |
testcase_13 | AC | 52 ms
61,456 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 50 ms
61,544 KB |
testcase_17 | AC | 53 ms
61,360 KB |
testcase_18 | AC | 51 ms
62,124 KB |
testcase_19 | AC | 49 ms
61,232 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 51 ms
61,976 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 50 ms
62,108 KB |
testcase_26 | WA | - |
testcase_27 | AC | 52 ms
62,156 KB |
testcase_28 | WA | - |
testcase_29 | AC | 52 ms
61,464 KB |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | AC | 51 ms
61,692 KB |
testcase_35 | WA | - |
testcase_36 | AC | 52 ms
62,072 KB |
testcase_37 | AC | 51 ms
62,176 KB |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | WA | - |
ソースコード
# import sys # input = sys.stdin.readline def mp():return map(int,input().split()) def lmp():return list(map(int,input().split())) def mps(A):return [tuple(map(int, input().split())) for _ in range(A)] def stoi(LIST):return list(map(int,LIST)) def itos(LIST):return list(map(str,LIST)) def bitA(X,A):return X & 1<<A == 1<<A import math import bisect import heapq import time from copy import copy as cc from copy import deepcopy as dc from itertools import accumulate from collections import Counter, defaultdict, deque def ceil(U,V):return (U+V-1)//V def modf1(N,MOD):return (N-1)%MOD+1 inf = int(1e18+20) mod = int(1e9+7) def insu(x): ans = 0 now = m while now <= x: ans += x//now now *= m return ans n,k,m = mp() print(insu(n)-insu(n-k)-insu(k))