結果
問題 |
No.360 増加門松列
|
ユーザー |
![]() |
提出日時 | 2016-04-18 22:39:35 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 19 ms / 2,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 236 ms |
コンパイル使用メモリ | 6,820 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-24 04:32:59 |
合計ジャッジ時間 | 1,333 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
from itertools import permutations as perm def iskadomatsu(a,b,c): return a < c and (a > b and c > b or b > a and b > c) D = map(int,raw_input().split()) for P in perm(D,7): if all(iskadomatsu(*P[i:i+3]) for i in xrange(5)): print "YES" break else: print "NO"