P1319 压缩技术(python3实现)
生活随笔
收集整理的這篇文章主要介紹了
P1319 压缩技术(python3实现)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
壓縮技術 - 洛谷
"""P1319 壓縮技術(python3實現) https://www.luogu.com.cn/problem/P1319"""t=0a=list( map( int,input().split() ) )n=a[0]i=0 s=0while s<n*n:i+=1b=a[i]while b>=1:if t==n:print()t=0if i%2==1:print("0",end='')else:print("1",end='') t+=1s+=1b-=1print()總結
以上是生活随笔為你收集整理的P1319 压缩技术(python3实现)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《深入浅出程序设计竞赛(基础篇)》第1部
- 下一篇: websocket python爬虫_p