結果
| 問題 |
No.360 増加門松列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-28 19:34:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 354 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 74,240 KB |
| 最終ジャッジ日時 | 2024-11-17 16:28:28 |
| 合計ジャッジ時間 | 2,336 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 7 |
ソースコード
from itertools import permutations
D = list(map(int, input().split()))
for l in permutations(D):
for i in range(5):
sub_l = [l[i], l[i+1], l[i+2]]
if l[i+1] in [min(sub_l), max(sub_l)] and l[i] < l[i+2]:
continue
else:
break
else:
print('YES')
break
else:
print('NO')