综合
文章平均质量分 78
鑫三爷
这个作者很懒,什么都没留下…
展开
-
cstring
ppp#include#include#include#includeusing namespace std;int main(){ int i,n; cin>>n; string a[10]; for(i=0;i<n;i++) { cin>>a[i]; } for(i=0;i<n;i++) { cout<<a[i].at(2)<<endl;; }原创 2015-10-23 21:16:49 · 80 阅读 · 0 评论 -
zoj2971 Give Me the Number(2008浙江省赛)
DescriptionNumbers in English are written down in the following way (only numbers less than 109 are considered). Number abc,def,ghi is written as "[abc] million [def] thousand [ghi]". Here "[xyz]原创 2015-11-07 20:17:30 · 102 阅读 · 0 评论 -
java理解int转float为何会可能精度丢失的问题
long的范围大于doublelong 2^63 4Bfloat 3.4*10^38 4Blong与float的丢失原理同下:1)小数转换成二进制:整数和小数分别转换。整数除以2,商继续除以2,得到0为止,将余数逆序排列。22 / 2 11 余011/2 5 余 15 /2 2 余 12 /2 1 余 01 /2 0 余 1所原创 2018-02-07 20:41:24 · 8683 阅读 · 1 评论