結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー chineristACchineristAC
提出日時 2021-03-05 21:42:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 869 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,472 KB
実行使用メモリ 64,312 KB
最終ジャッジ日時 2024-04-16 09:06:58
合計ジャッジ時間 2,338 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
64,312 KB
testcase_01 AC 54 ms
62,960 KB
testcase_02 AC 54 ms
63,876 KB
testcase_03 AC 54 ms
62,596 KB
testcase_04 AC 53 ms
63,768 KB
testcase_05 AC 52 ms
62,796 KB
testcase_06 AC 53 ms
63,232 KB
testcase_07 AC 52 ms
63,040 KB
testcase_08 AC 52 ms
63,164 KB
testcase_09 AC 52 ms
62,664 KB
testcase_10 AC 52 ms
63,204 KB
testcase_11 AC 54 ms
63,888 KB
testcase_12 AC 52 ms
62,484 KB
testcase_13 AC 53 ms
63,496 KB
testcase_14 AC 52 ms
62,760 KB
testcase_15 AC 53 ms
62,816 KB
testcase_16 AC 52 ms
62,724 KB
testcase_17 AC 53 ms
63,608 KB
testcase_18 AC 52 ms
62,404 KB
testcase_19 AC 53 ms
62,672 KB
testcase_20 AC 52 ms
62,596 KB
testcase_21 AC 53 ms
63,592 KB
testcase_22 AC 53 ms
62,668 KB
testcase_23 AC 54 ms
63,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def cmb(n, r, mod):#コンビネーションの高速計算 
    if ( r<0 or r>n ):
        return 0
    r = min(r, n-r)
    return (g1[n] * g2[r] % mod) * g2[n-r] % mod

mod = 998244353#出力の制限
N = 2*10**3
g1 = [1]*(N+1) # 元テーブル
g2 = [1]*(N+1) #逆元テーブル
inverse = [1]*(N+1) #逆元テーブル計算用テーブル

for i in range( 2, N + 1 ):
    g1[i]=( ( g1[i-1] * i ) % mod )
    inverse[i]=( ( -inverse[mod % i] * (mod//i) ) % mod )
    g2[i]=( (g2[i-1] * inverse[i]) % mod )
inverse[0]=0

import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import log,gcd

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N = int(input())
if N<=0:
    print(0)
else:
    print(N//100)
0