結果
| 問題 | No.360 増加門松列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-12 13:31:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 351 bytes |
| 記録 | |
| コンパイル時間 | 209 ms |
| コンパイル使用メモリ | 85,476 KB |
| 実行使用メモリ | 62,544 KB |
| 最終ジャッジ日時 | 2026-03-08 03:21:34 |
| 合計ジャッジ時間 | 1,472 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 8 |
ソースコード
import itertools
D = list(map(int, input().split()))
for lst in itertools.permutations(D):
ok = True
for i in range(1, 6):
a = D[i - 1]
b = D[i]
c = D[i + 1]
if a < c < b or b < a < c:
pass
else:
ok = False
break
if ok:
print("YES")
else:
print("NO")