結果
| 問題 |
No.360 増加門松列
|
| コンテスト | |
| ユーザー |
Nagisa
|
| 提出日時 | 2016-04-17 23:10:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 383 bytes |
| コンパイル時間 | 139 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-04 10:51:55 |
| 合計ジャッジ時間 | 1,447 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")
Nagisa