
函数
WangRenFengzzZ
人生有些事不做可能没啥影响,但是那些事是做可能会影响的一生!
展开
-
stringstream的基本用法
1. stringstream对象的使用 #include<sstream> #include<iostream> using namespace std; int main() { string line,word; while(getline(cin,line)) { str...原创 2018-05-07 18:27:04 · 205 阅读 · 0 评论 -
Educational Codeforces Round 35 B. Two Cakes【枚举】
【给盘子个数,两份蛋糕块数,最少需要在每个盘子放几块蛋糕保证所有蛋糕块都装下】 input 5 2 3 output 1 input 4 7 10 output 3 #include<bits/stdc++.h> using namespace std; int main(){ int n,a,b,ans; while(~scanf("%d%d...原创 2018-08-14 10:09:38 · 246 阅读 · 0 评论