結果
| 問題 | No.930 数列圧縮 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-27 12:00:03 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 2,000 ms |
| コード長 | 243 bytes |
| 記録 | |
| コンパイル時間 | 141 ms |
| コンパイル使用メモリ | 77,076 KB |
| 最終ジャッジ日時 | 2025-12-04 02:04:09 |
|
ジャッジサーバーID (参考情報) |
judge1 / 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]