結果

問題 No.365 ジェンガソート
ユーザー persimmon-persimmonpersimmon-persimmon
提出日時 2021-06-29 19:55:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 518 ms
コンパイル使用メモリ 87,008 KB
実行使用メモリ 90,400 KB
最終ジャッジ日時 2023-09-08 05:06:01
合計ジャッジ時間 5,774 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,496 KB
testcase_01 AC 70 ms
71,112 KB
testcase_02 AC 70 ms
71,300 KB
testcase_03 AC 70 ms
71,348 KB
testcase_04 AC 68 ms
71,444 KB
testcase_05 AC 69 ms
71,204 KB
testcase_06 AC 67 ms
71,300 KB
testcase_07 AC 67 ms
71,284 KB
testcase_08 AC 71 ms
71,144 KB
testcase_09 AC 70 ms
71,140 KB
testcase_10 AC 68 ms
71,280 KB
testcase_11 AC 68 ms
71,112 KB
testcase_12 AC 70 ms
71,120 KB
testcase_13 AC 67 ms
71,188 KB
testcase_14 AC 69 ms
71,348 KB
testcase_15 AC 67 ms
71,348 KB
testcase_16 AC 85 ms
86,648 KB
testcase_17 AC 89 ms
90,172 KB
testcase_18 AC 73 ms
75,820 KB
testcase_19 AC 89 ms
90,096 KB
testcase_20 AC 77 ms
78,648 KB
testcase_21 AC 77 ms
77,136 KB
testcase_22 AC 87 ms
86,544 KB
testcase_23 AC 79 ms
80,644 KB
testcase_24 AC 83 ms
85,368 KB
testcase_25 AC 77 ms
76,740 KB
testcase_26 AC 80 ms
82,416 KB
testcase_27 AC 88 ms
90,056 KB
testcase_28 AC 83 ms
83,668 KB
testcase_29 AC 89 ms
88,352 KB
testcase_30 AC 82 ms
83,836 KB
testcase_31 AC 75 ms
77,972 KB
testcase_32 AC 76 ms
77,912 KB
testcase_33 AC 88 ms
90,228 KB
testcase_34 AC 75 ms
75,952 KB
testcase_35 AC 85 ms
85,292 KB
testcase_36 AC 92 ms
90,196 KB
testcase_37 AC 92 ms
90,260 KB
testcase_38 AC 92 ms
90,360 KB
testcase_39 AC 93 ms
90,264 KB
testcase_40 AC 94 ms
90,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main2(n,a):
  cnt=0
  for x in a[::-1]:
    if x==n-cnt:
      cnt+=1
  return n-cnt

if __name__=='__main__':
  n=int(input())
  a=list(map(int,input().split()))
  ret2=main2(n,a)
  print(ret2)
0