結果
問題 | No.490 yukiソート |
ユーザー |
![]() |
提出日時 | 2020-08-19 02:50:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 107 ms / 2,000 ms |
コード長 | 448 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 69,296 KB |
最終ジャッジ日時 | 2024-10-12 03:29:35 |
合計ジャッジ時間 | 3,567 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 34 |
ソースコード
# import sys; input = sys.stdin.buffer.readline# sys.setrecursionlimit(10**7)from collections import defaultdictcon = 10 ** 9 + 7; INF = float("inf")def getlist():return list(map(int, input().split()))#処理内容def main():N = int(input())A = getlist()for i in range(1, 2 * N - 3):for p in range(N):q = i - pif p < q <= N - 1 and A[p] > A[q]:A[p], A[q] = A[q], A[p]print(*A)if __name__ == '__main__':main()