結果

問題 No.1219 Mancala Combo
ユーザー buey_tbuey_t
提出日時 2023-03-19 12:21:28
言語 PyPy3
(7.3.8)
結果
WA  
実行時間 -
コード長 1,496 bytes
コンパイル時間 243 ms
使用メモリ 120,760 KB
最終ジャッジ日時 2023-03-19 12:21:38
合計ジャッジ時間 9,431 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 201 ms
88,792 KB
testcase_01 AC 200 ms
88,980 KB
testcase_02 AC 204 ms
89,008 KB
testcase_03 AC 197 ms
88,528 KB
testcase_04 WA -
testcase_05 AC 200 ms
88,824 KB
testcase_06 WA -
testcase_07 AC 205 ms
88,568 KB
testcase_08 WA -
testcase_09 AC 194 ms
88,652 KB
testcase_10 WA -
testcase_11 AC 197 ms
88,768 KB
testcase_12 WA -
testcase_13 AC 195 ms
88,624 KB
testcase_14 AC 198 ms
88,572 KB
testcase_15 AC 206 ms
88,600 KB
testcase_16 WA -
testcase_17 AC 252 ms
110,680 KB
testcase_18 WA -
testcase_19 AC 225 ms
107,860 KB
testcase_20 WA -
testcase_21 AC 218 ms
105,496 KB
testcase_22 WA -
testcase_23 AC 248 ms
116,620 KB
testcase_24 WA -
testcase_25 AC 221 ms
107,880 KB
testcase_26 WA -
testcase_27 AC 242 ms
119,988 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    try:
        import pypyjit
        pypyjit.set_param('max_unroll_recursion=-1')
    except:
        pass
    try:
        import sys
        sys.setrecursionlimit(10**7)
    except:
        pass
    from math import sqrt,sin,cos,tan,ceil,radians,floor,gcd,exp,log,log10,log2,factorial,fsum
    from heapq import heapify, heappop, heappush
    from bisect import bisect_left, bisect_right
    from copy import deepcopy
    import copy
    import random
    from collections import deque,Counter,defaultdict
    from itertools import permutations,combinations
    from decimal import Decimal,ROUND_HALF_UP
    #tmp = Decimal(mid).quantize(Decimal('0'), rounding=ROUND_HALF_UP)
    from functools import lru_cache, reduce
    #@lru_cache(maxsize=None)
    from operator import add,sub,mul,xor,and_,or_,itemgetter
    INF = 10**18
    mod1 = 10**9+7
    mod2 = 998244353
    
    #DecimalならPython
    
    
    '''
    
    
    
    '''
    
    N = int(input())
    A = list(map(int, input().split()))
    
    f = True
    end = N
    for i in reversed(range(1,N+1)):
        if A[i-1] == 0 and f:
            end = i-1
            continue
        if (A[i-1]+end-i)%i != 0:
            print('No')
            exit()
        f = False
    
    print('Yes')
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
if __name__ == '__main__':
    main()
0