結果
問題 |
No.742 にゃんにゃんにゃん 猫の挨拶
|
ユーザー |
![]() |
提出日時 | 2019-08-24 21:40:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 243 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 18,724 KB |
最終ジャッジ日時 | 2024-10-14 13:17:43 |
合計ジャッジ時間 | 5,191 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 TLE * 1 -- * 4 |
ソースコード
N=int(input()) M=[int(input()) for _ in range(N)] def bSort(a): ans=0 for i in range(len(a)): for j in range(len(a)-1, i, -1): if a[j] < a[j-1]: ans+=1 a[j], a[j-1] = a[j-1], a[j] return ans print(bSort(M))