結果

問題 No.241 出席番号(1)
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2024-01-10 22:49:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,550 ms / 2,000 ms
コード長 440 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 77,616 KB
最終ジャッジ日時 2024-01-10 22:49:52
合計ジャッジ時間 8,278 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
61,560 KB
testcase_01 AC 47 ms
61,560 KB
testcase_02 AC 46 ms
61,560 KB
testcase_03 AC 46 ms
61,560 KB
testcase_04 AC 48 ms
61,560 KB
testcase_05 AC 49 ms
61,560 KB
testcase_06 AC 46 ms
61,560 KB
testcase_07 AC 45 ms
61,560 KB
testcase_08 AC 46 ms
61,560 KB
testcase_09 AC 49 ms
61,560 KB
testcase_10 AC 48 ms
61,560 KB
testcase_11 AC 1,548 ms
77,616 KB
testcase_12 AC 45 ms
61,560 KB
testcase_13 AC 44 ms
61,560 KB
testcase_14 AC 46 ms
61,560 KB
testcase_15 AC 45 ms
61,560 KB
testcase_16 AC 1,546 ms
77,268 KB
testcase_17 AC 46 ms
61,560 KB
testcase_18 AC 44 ms
61,560 KB
testcase_19 AC 45 ms
61,560 KB
testcase_20 AC 50 ms
61,560 KB
testcase_21 AC 45 ms
61,560 KB
testcase_22 AC 47 ms
61,560 KB
testcase_23 AC 46 ms
61,560 KB
testcase_24 AC 47 ms
63,668 KB
testcase_25 AC 47 ms
61,560 KB
testcase_26 AC 47 ms
61,560 KB
testcase_27 AC 1,550 ms
77,604 KB
testcase_28 AC 47 ms
61,560 KB
testcase_29 AC 50 ms
61,560 KB
testcase_30 AC 53 ms
66,664 KB
testcase_31 AC 47 ms
61,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
import random,time
start = time.time()

N = int(input())
A = [int(input()) for _ in range(N)]
B = [i for i in range(N)]
while time.time()-start < 1.5:
    if any(A[i]==B[i] for i in range(N)):
        random.shuffle(B)
        continue
    else:
        print(*B,sep='\n')
        exit()
print(-1)

    
0