- 博客(5)
- 收藏
- 关注
转载 【转】C++中的 istringstream 的用法
转载于https://blog.csdn.net/jacky_chenjp/article/details/70233212 今天在看别人的C++程序源码的时候,看到了一个比较有用的C++的输入输出控制类。因为之前没有使用过,故特地学习了一下,在此总结。 程序源码中使用了这样的语句: ifstream fin(fname); int a,b,c; string s; getline(fin, s)...
2020-03-30 21:52:29 239
原创 UCF Local Contest — September 1, 2018 J. Circle Meets Square
题目在这 We all know that you can’t put a round peg in a square hole. Asking you to do so in this contestwould be cruel and unusual punishment, which is banned by the Eighth Amendment to the UnitedStates ...
2020-03-27 23:16:04 529
原创 UCF “Practice” Local Contest — Aug 24, 2013 D.Cell Phone Contacts(模拟/map)
题在这儿 参考: https://www.cnblogs.com/ctyakwf/p/12465481.html #include <bits/stdc++.h> #define ll long long using namespace std; const int N = 1e5 + 8; const int inf = 0x3f3f3f3f; #define PI 3.14159 ...
2020-03-12 22:25:36 575
原创 HDU - 4990
n 为奇数时: f(1)=(01)B=1 f(2)=(101)B=5 f(3)=(10101)B=21…… f(n) = 20+22+24+…+2n-1 = 40+41+42+…+4(n-1)/2 = (2n+1-1)/3; n为偶数时: f(1)=(10)B=2 f(2)=(1010)B=10 f(3)=(101010)B=42…… f(n)=21+23+25+…+2n-1=2(40+41+4...
2020-03-10 23:49:43 260
原创 SDNU_ACM_ICPC_2020_Winter_Practice_1st C (set)
Helen works in Metropolis airport. She is responsible for creating a departure schedule. There are n flights that must depart today, the i-th of them is planned to depart at the i-th minute of the day...
2020-01-27 23:13:53 233 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人