From 9d948bead1f0af713be58f89862e36afc59ddd06 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sun, 12 Oct 2025 09:49:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor(P3879.cpp):=20=E6=98=BE=E5=BC=8F?= =?UTF-8?q?=E5=A3=B0=E6=98=8E=E8=BF=AD=E4=BB=A3=E5=99=A8=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=BB=A5=E5=A2=9E=E5=BC=BA=E4=BB=A3=E7=A0=81=E5=8F=AF=E8=AF=BB?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将auto替换为具体的迭代器类型声明,使代码意图更清晰 --- src/10/12/P3879.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/10/12/P3879.cpp b/src/10/12/P3879.cpp index bfab136..679f302 100644 --- a/src/10/12/P3879.cpp +++ b/src/10/12/P3879.cpp @@ -25,7 +25,7 @@ int main(){ std::cin>>m; while(m--){ std::cin>>tmp; - if(const auto p = s.find(tmp);p!=s.end()){ + if(std::map>::const_iterator p = s.find(tmp);p!=s.end()){ for(const ll i:p->second){ std::cout<