昨天(7/14)參加了洛谷的 7 月月賽,感覺題目挺新穎的,就是資料有點。。。 比賽連結: 這裡 我的程式碼在 這裡 A 乍一看好像沒思路,但是想一想,其實很簡單,就是會有幾種情況: 0個空格 全是數字的話,需要判斷一下 A. 兩者完全相同 B. 非A,情況 A 是可以輸出 Yes 的。 1個空格 這一種情況,從原理上分析,“選擇一個有正整數的格子和一個與之相鄰的空格子,將正整數移到那個空格子中”…
Louis Aeilot's Blog 的其他文章
- How Close Is FlashAttention to the Limit? Understanding Attention Through Data Movement
- Beyond FLOPs: How COSMA Builds Parallel Matrix Multiplication from Communication Bounds
- The Red-Blue Pebble Game: Why Faster Processors Still Have to Move Data
- Git Needs a Trash Can
- RoPE: Properties, Patterns, and Long-Context Behavior
讨论
登录后参与讨论
还没有评论,来说第一句吧。