<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>牛客Round on shift&#39;s Blog</title>
    <link>/tags/%E7%89%9B%E5%AE%A2round/</link>
    <description>Recent content in 牛客Round on shift&#39;s Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <lastBuildDate>Mon, 12 Feb 2024 11:45:24 +0800</lastBuildDate>
    <atom:link href="/tags/%E7%89%9B%E5%AE%A2round/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>牛客周赛Round32</title>
      <link>/posts/acm/%E7%89%9B%E5%AE%A2%E5%91%A8%E8%B5%9Bround32/</link>
      <pubDate>Mon, 12 Feb 2024 11:45:24 +0800</pubDate>
      <guid>/posts/acm/%E7%89%9B%E5%AE%A2%E5%91%A8%E8%B5%9Bround32/</guid>
      <description>A.小红的 01 背包 能装多少装多少就行 $code:$ void solve() { int v, x, y; std::cin &amp;gt;&amp;gt; v &amp;gt;&amp;gt; x &amp;gt;&amp;gt; y; std::cout &amp;lt;&amp;lt; v / x * y &amp;lt;&amp;lt; &amp;#39;\n&amp;#39;; } B.小红的 dfs 枚举每一行，然后对于第一行为 $dfs$ 的情况, 只存在第一列也为 $dfs$ 满足，其他行同理枚举一遍即可 void solve() { char g[3][3]; for(int i = 0; i &amp;lt; 3; i ++) { for(int j = 0; j &amp;lt; 3; j ++ ) { std::cin &amp;gt;&amp;gt; g[i][j]; } } int ans = 9, v = 0; if(g[0][0] != &amp;#39;d&amp;#39;) v ++; if(g[0][1] != &amp;#39;f&amp;#39;) v ++; if(g[0][2] !=</description>
    </item>
    <item>
      <title>牛客周赛Round31</title>
      <link>/posts/acm/%E7%89%9B%E5%AE%A2%E5%91%A8%E8%B5%9Bround31/</link>
      <pubDate>Mon, 05 Feb 2024 12:14:11 +0800</pubDate>
      <guid>/posts/acm/%E7%89%9B%E5%AE%A2%E5%91%A8%E8%B5%9Bround31/</guid>
      <description>牛客周赛Round31 A.小红小紫替换 判断即可 $code:$ void solve() { std::string s; std::cin &amp;gt;&amp;gt; s; std::cout &amp;lt;&amp;lt; (s == &amp;#34;kou&amp;#34; ? &amp;#34;yukari&amp;#34; : s) &amp;lt;&amp;lt; &amp;#39;\n&amp;#39;; } B.小红的因子数 看到数据范围为 $1e13$，$\sqrt{1e13} \approx 3e6$ 所以直接枚举根号以内的素因子即可 复杂度 $O(\sqrt{n})$ $code:$ void solve() { i64 x; std::cin &amp;gt;&amp;gt; x; int ans = 0; for(int i = 2; i &amp;lt;= x / i; i ++ ) { if(x % i == 0) { while(x % i == 0) { x /=</description>
    </item>
  </channel>
</rss>
