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