結果
| 問題 |
No.360 増加門松列
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-02-26 22:25:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 345 bytes |
| コンパイル時間 | 277 ms |
| コンパイル使用メモリ | 82,516 KB |
| 実行使用メモリ | 74,920 KB |
| 最終ジャッジ日時 | 2025-02-26 22:25:40 |
| 合計ジャッジ時間 | 2,612 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 7 |
ソースコード
from itertools import permutations
D = list(map(int,input().split()))
for X in permutations(range(7),7):
for i in range(5):
Y = [D[X[i]],D[X[i+1]],D[X[i+2]]]
if (max(Y) == Y[1] or min(Y) == Y[1]) and Y[0] < Y[2]:
continue
else:
break
else:
print("YES")
exit()
print("NO")
ntuda