From e78435a30652bdc6d96962915603f639159412e3 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Thu, 6 Nov 2025 15:39:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(test.cpp):=20=E4=BF=AE=E6=AD=A3source=5Floc?= =?UTF-8?q?ation=E7=9A=84=E4=BD=BF=E7=94=A8=E6=96=B9=E5=BC=8F=20feat(P7114?= =?UTF-8?q?.cpp):=20=E6=B7=BB=E5=8A=A0=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=A4=84?= =?UTF-8?q?=E7=90=86=E7=AE=97=E6=B3=95=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/11/6/P7114.cpp | 53 ++++++++++++++++++++++++++++++++++++++++++++++ src/test.cpp | 2 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 src/11/6/P7114.cpp diff --git a/src/11/6/P7114.cpp b/src/11/6/P7114.cpp new file mode 100644 index 0000000..b63bbbb --- /dev/null +++ b/src/11/6/P7114.cpp @@ -0,0 +1,53 @@ +#include +#include +#include +#include +#include +#include +using ll = int64_t; +#define sl static inline + +std::string s; +std::bitset<256> mcj,maj; +sl ll cj(){return mcj.count();} +sl ll aj(){return maj.count();} + +sl void solve(){ + ll ans=0; + mcj.reset(); + maj.reset(); + std::cin>>s; + for(ll alen=1;alencj()){ + continue; + } + for(ll i=alen+blen;i>t; + while(t--){ + solve(); + } +} \ No newline at end of file diff --git a/src/test.cpp b/src/test.cpp index cecbaac..4f30c2a 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -2,5 +2,5 @@ #include #include int main(){ - std::println("hello world from {}\n",std::source_location().file_name()); + std::println("hello world from {}\n",std::source_location::current().file_name()); } \ No newline at end of file