結果
| 問題 |
No.360 増加門松列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-18 12:46:41 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 2,000 ms |
| コード長 | 197 bytes |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2024-12-24 04:35:36 |
| 合計ジャッジ時間 | 1,069 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
from itertools import permutations k = lambda a, b, c: (b<a<c or a<c<b) print ['NO','YES'][any(all(k(L[i], L[i+1], L[i+2]) for i in xrange(5)) for L in permutations(map(int, raw_input().split())))]