非正常人类研究所所长
非正常人类研究所所长
全部文章
分类
题解(7)
归档
标签
去牛客网
登录
/
注册
非正常人类研究所所长的博客
全部文章
(共7篇)
题解 | #最长公共包含串#
题目描述 给你四个字符串,你需要求出包含这四个字符串作为子串的最短字符串长度 #include <bits/stdc++.h> using namespace std; typedef long long ll; string s[4]; int a[24][4] = { {0, 1, ...
C++
2023-01-28
0
257
题解 | #おみやげをまらいました#
#include<bits/stdc++.h> #define inf 0x3f3f3f3f #define int long long using namespace std; const int N=2e5+7; const int mod=1e9+7; map<string,...
2022-11-20
1
248
题解 | #[NOIP2017]时间复杂度#
#include<bits/stdc++.h> using namespace std; int n; string k; int str_to_int(string a) { int ans=0; for(int i=0;i<a.length();i++) ans=ans*10+...
2022-11-20
0
329
题解 | #[NOIP2016]海港#
#include #include #include const int MAXN=100001; using namespace std; int n,t[MAXN],k[MAXN],x[300001],tot,h[MAXN];//h索引表 int b[MAXN];//那就把b改成每个国家的人有多...
2022-11-19
0
362
题解 | #扫雷#
#include<bits/stdc++.h> using namespace std; bool a[101][101]; int m,n; int main(){ cin>>m>>n; for(int i=1;i<=m;++i){ for(int j=1...
2022-11-19
0
304
题解 | #机器翻译#
链接:https://ac.nowcoder.com/acm/problem/16589 来源:牛客网 小晨的电脑上安装了一个机器翻译软件,他经常用这个软件来翻译英语文章。 这个翻译软件的原理很简单,它只是从头到尾,依次将每个英文单词用对应的中文含义来替换。对于每个英文单词,软件会先在内存中查找这个...
2022-11-19
0
353
题解 | #[NOIP2005]陶陶摘苹果#
#include using namespace std; int main() { int a[10]; int i,h,n=0; for(i=0;i<=9;i++) cin>>a[i]; cin>>h; h+=30; for(i=0;i<=9;i++) if(...
2022-11-19
0
250