結果
問題 |
No.365 ジェンガソート
|
ユーザー |
![]() |
提出日時 | 2017-03-05 02:49:16 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 184 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 15,176 KB |
最終ジャッジ日時 | 2024-06-23 02:16:29 |
合計ジャッジ時間 | 2,995 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 25 |
ソースコード
N = input() a = map(int , raw_input().split()) count = 0 look = a[0] for i in range(N - 1): if look > a[i + 1]: count += 1 else: look = a[i + 1] print count