ICode9

精准搜索请尝试: 精确搜索
  • 1081 检查密码 测试点22022-07-13 12:35:45

    易错点 输入格式中提到:“每行给出一个用户设置的密码,为不超过 80 个字符的非空字符串”,因此可能包含空格。测试点2即包含空格,如果用“cin>>a",测试点2会过不去,需要用cin.getline() 代码 #include <iostream> #include <cstdio> #include <string> using namespace std; bool is_le

  • 1077 互评成绩计算 setprecision有误差2022-07-12 20:33:07

    易错点 很多关键细节在题干背景里,而不单单是输出格式里,很容易忽略 setprecision有误差,.5会舍去而不是进位 代码 #include <iostream> #include <cstdio> #include <iomanip> using namespace std; int main() { int n,m; int p; float tmp1,tmp2,tmp3; int tmp4; int max,

  • 1055 集体照 较复杂2022-07-11 12:07:09

    关键 双端队列的使用 数值和字符串的相互映射(有重复值) 代码 #include <iostream> #include <cstdio> #include <string> #include <set> #include <deque> #include <algorithm> using namespace std; string array[300][2000]; int a[10001]; string h[10001]

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有