码迷,mamicode.com
首页 >  
搜索关键字:cout    ( 7219个结果
1077 Kuchiguse (20 分)
一眼二分。 注意点: 在读入n之后要使用getchar接收后面的换行符,否则会使for循环内的getline读入这个换行符,导致第一个字符串读取错误。 最后输出答案前要先check一遍 const int N=110; string a[N]; string suffix; int n; bool ...
分类:其他好文   时间:2021-02-17 14:18:36    阅读次数:0
【Good Bye 2020 E】Apollo versus Pan
题目链接 链接 翻译 题意很简单,让你求题目描述中那个离谱的式子。 题解 大概就是这样做了一下变换 然后我们就可以固定 \(j\),问题转换成快速求解 \(\sum_{i=1}^n(x_j\ \&\ x_i)\) 和 \(\sum_{i=1}^n(xj\ |\ xi)\) 如果我们设 \(f(i,j ...
分类:其他好文   时间:2021-02-17 14:16:18    阅读次数:0
1058 A+B in Hogwarts (20 分)
不开long long见祖宗。 struct Node { LL galleon,sickle,knut; }a,b; int main() { scanf("%d.%d.%d",&a.galleon,&a.sickle,&a.knut); scanf("%d.%d.%d",&b.galleon,& ...
分类:其他好文   时间:2021-02-16 12:33:27    阅读次数:0
1006 换个格式输出整数 (15 分)
水题~。 int n; int main() { cin>>n; string res; int t=n/100; for(int i=0;i<t;i++) res+='B'; t=n%100/10; for(int i=0;i<t;i++) res+='S'; t=n%100%10; for(in ...
分类:其他好文   时间:2021-02-16 12:32:36    阅读次数:0
_str_t 部分函数(内部)
1.小写输出 _str_t Val("AFSDFSasdfsdf"); cout<< Val.toLowerCase().data()<<endl; 2.中文输出 _str_t Val("中国人"); cout<< Val.data()<<endl; ...
分类:其他好文   时间:2021-02-16 12:29:18    阅读次数:0
C++多线程(一)
#include<iostream> #include<thread> using namespace std; void func() { cout << "子线程开始了" << endl; cout << "......" << endl; cout << "子线程结束了" << endl; } ...
分类:编程语言   时间:2021-02-16 12:12:15    阅读次数:0
[CF713C] Sonya and Problem Wihtout a Legend - dp
给定一个数组,每次操作可以把任意一个元素 +1 或者 -1。求使得递增的最小操作次数。 n<=3000 ...
分类:其他好文   时间:2021-02-16 11:54:21    阅读次数:0
1042 Shuffling Machine (20 分)
模拟题。 const int N=55; string mp[]={"S","H","C","D","J"}; string s[N]; string t[N]; int p[N]; int n; int cnt; void init() { for(int i=0;i<4;i++) for(int ...
分类:系统相关   时间:2021-02-15 12:40:01    阅读次数:0
Educational Codeforces Round 102 (Rated for Div. 2)E题(分层图、最短路)
https://codeforces.com/contest/1473/problem/E vector存图: 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync_with_stdio(0),cin.tie(0 ...
分类:其他好文   时间:2021-02-15 12:17:20    阅读次数:0
单源最短路 : 多起点
https://www.acwing.com/problem/content/1139/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:其他好文   时间:2021-02-15 11:53:52    阅读次数:0
7219条   上一页 1 ... 8 9 10 11 12 ... 722 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!