結果

問題 No.1628 Sorting Integers (MAX of M)
ユーザー marcypymarcypy
提出日時 2021-07-31 06:41:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 592 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-16 09:07:46
合計ジャッジ時間 978 ms
ジャッジサーバーID
(参考情報)
judge5 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 1 WA * 5
権限があれば一括ダウンロードができます

ソースコード

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