結果
問題 | No.100 直列あみだくじ |
ユーザー |
![]() |
提出日時 | 2023-11-29 00:40:39 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 279 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 58,112 KB |
最終ジャッジ日時 | 2024-09-26 13:13:18 |
合計ジャッジ時間 | 3,930 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 41 WA * 4 |
ソースコード
N = int(input()) A = list(map(int, input().split())) cnt = 0 for i in range(N): for j in range(i + 1, N): if A[i] > A[j]: cnt += 1 print("Yes") if cnt % 2 == 0 else print("No")