結果
問題 | No.360 増加門松列 |
ユーザー |
![]() |
提出日時 | 2016-04-17 23:08:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 384 bytes |
コンパイル時間 | 412 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-04 10:50:42 |
合計ジャッジ時間 | 1,518 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 12 |
ソースコード
import itertools D = list(map(int, input().split())) def hantei(l): for p in range(5): if l[p] < l[p+1] > l[p+2] or l[p] > l[p+1] < l[p+2]: if l[p] != l[p+2]: continue else: return False return True for retsu in itertools.permutations(D, 7): if hantei(list(retsu)): print("YES") exit() print("NO")