結果

問題 No.1628 Sorting Integers (MAX of M)
ユーザー marcypymarcypy
提出日時 2021-07-31 06:41:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 592 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 11,032 KB
実行使用メモリ 9,440 KB
最終ジャッジ日時 2023-10-14 14:31:32
合計ジャッジ時間 938 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
9,192 KB
testcase_01 WA -
testcase_02 AC 27 ms
9,412 KB
testcase_03 AC 26 ms
9,316 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 24 ms
9,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.setrecursionlimit(10**6)
#input = sys.stdin.readline
fn=lambda:int(input())
f=lambda:input().split()
ff=lambda:map(int,input().split())
fff=lambda:list(map(int,input().split()))
from collections import Counter,deque,defaultdict
from itertools import combinations
import re
import math
ma=-float('inf')
mi=float('inf')
mod=10**9+7
dis=((1,0),(-1,0),(0,1),(0,-1))
#import numpy as np #pypyでは使えない
##############################################

n=fn()
c=fff()
ans=[]
for i,v in enumerate(c,1):
    if v==1:
        ans.append(i)
print(*sorted(ans,reverse=True),sep='')
0