結果
問題 | No.360 増加門松列 |
ユーザー |
👑 |
提出日時 | 2022-07-12 13:31:22 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 351 bytes |
コンパイル時間 | 387 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 60,416 KB |
最終ジャッジ日時 | 2024-06-23 10:03:02 |
合計ジャッジ時間 | 2,084 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 8 |
ソースコード
import itertoolsD = list(map(int, input().split()))for lst in itertools.permutations(D):ok = Truefor i in range(1, 6):a = D[i - 1]b = D[i]c = D[i + 1]if a < c < b or b < a < c:passelse:ok = Falsebreakif ok:print("YES")else:print("NO")