結果
問題 |
No.930 数列圧縮
|
ユーザー |
|
提出日時 | 2019-12-27 12:00:03 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 114 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 636 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 14,996 KB |
最終ジャッジ日時 | 2024-10-07 19:48:51 |
合計ジャッジ時間 | 4,394 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
#yuki930 import sys n=int(raw_input()) a=map(int,raw_input().split()) if a[0]>a[n-1]: print 'No' sys.exit() print 'Yes' for i in range(1,n-1): if a[0]<a[i]: print a[i], for i in range(n-2,0,-1): if a[0]>a[i]: print a[i], print a[n-1]