結果
問題 |
No.360 増加門松列
|
ユーザー |
![]() |
提出日時 | 2016-04-18 22:38:05 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 38 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-04 13:56:24 |
合計ジャッジ時間 | 942 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 9 |
ソースコード
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"