码迷,mamicode.com
首页 >  
搜索关键字:cin getline    ( 8174个结果
Java线程池状态和状态切换
介绍线程池的五种状态RUNNING、SHUTDOWN、STOP、TIDYING和TERMINATED,并简述五种状态之间的切换。 ...
分类:编程语言   时间:2021-02-20 12:23:58    阅读次数:0
1037 Magic Coupon (25 分)
水题~。 魔鬼变量名。 vector<int> positive_coupon,negative_coupon; vector<int> positive_product,negative_product; int nc,np; int main() { cin>>nc; for(int i=0;i ...
分类:其他好文   时间:2021-02-20 11:51:01    阅读次数:0
CCF 201809-1 卖菜
#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int n; cin>>n; vector<int> a; for(int i=0;i<n;i++) { ...
分类:其他好文   时间:2021-02-19 13:54:37    阅读次数:0
容斥原理
容斥原理 \(\because C_n^0 + C_n^1 + C_n^2 + \ldots + C_n^n = 2^n\) \(\therefore C_n^1 + C_n^2 + \ldots + C_n^n = 2^n - 1\) 实现的时候,奇数加,偶数减。 题意:给定一个整数 n 和 m ...
分类:其他好文   时间:2021-02-19 13:23:10    阅读次数:0
1038 统计同成绩学生 (20 分)
水题。 int cnt[105]; int n,m; int main() { cin>>n; for(int i=0;i<n;i++) { int x; cin>>x; cnt[x]++; } cin>>m; for(int i=0;i<m;i++) { int x; cin>>x; if(i) ...
分类:其他好文   时间:2021-02-19 13:14:05    阅读次数:0
1033 旧键盘打字 (20 分)
兄弟题1084 Broken Keyboard (20 分),一样的水~。 ps:`当按键都没坏的时候,输入可能为空,要用getline而不能用cin。 bool vis[200]; string a,b; int main() { getline(cin,a); getline(cin,b); f ...
分类:其他好文   时间:2021-02-19 13:11:20    阅读次数:0
1047 Student List for Course (25 分)
兄弟题1039 Course List for Student (25 分),一样很水。 vector<string> course[2510]; int n,m; int main() { cin>>n>>m; for(int i=0;i<n;i++) { string name; name.re ...
分类:其他好文   时间:2021-02-19 12:59:54    阅读次数:0
JavaFx监听进度条
import javafx.application.Application; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.geometry.Pos ...
分类:编程语言   时间:2021-02-18 13:16:42    阅读次数:0
最小生成树 : Kruskal
https://www.acwing.com/problem/content/1143/ \(裸题\) #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); c ...
分类:其他好文   时间:2021-02-17 14:58:39    阅读次数:0
最小生成树 : 最大边
https://www.acwing.com/problem/content/1144/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:其他好文   时间:2021-02-17 14:57:50    阅读次数:0
8174条   上一页 1 ... 8 9 10 11 12 ... 818 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!