結果
問題 | No.490 yukiソート |
ユーザー |
|
提出日時 | 2017-03-10 23:07:17 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 1,710 ms / 2,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-24 10:22:00 |
合計ジャッジ時間 | 18,814 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 34 |
ソースコード
#!/usr/bin/env pythonn=input()a_list=map(int,raw_input().split(" "))buf=0for i in range(1,2*n-3):for p in range(n-1):q=i-pif p<q and q<=n-1:if a_list[p]>a_list[q]:buf=a_list[p]a_list[p]=a_list[q]a_list[q]=bufprint " ".join(map(str,a_list))