結果
問題 | No.360 増加門松列 |
ユーザー |
![]() |
提出日時 | 2016-06-07 02:03:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 460 bytes |
コンパイル時間 | 161 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-24 04:34:30 |
合計ジャッジ時間 | 1,521 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
from itertools import permutations as permD = list(map(int, input().split()))def check(a, b, c):if a == b or b == c or a == c:return Falsereturn max(a, b, c) == b or min(a, b, c) == bfor x in perm(D):if not (x[0]< x[2] < x[4] < x[6] and x[1] < x[3] < x[5]):continuefor i in range(5):a, b, c = x[i:i+3]if not check(a, b, c):breakelse:print('YES')exit()print('NO')