ICode9

精准搜索请尝试: 精确搜索
  • 201909-3 字符画 CCF CCSP2021-04-04 12:57:09

    主要是系统化,模块化设计,先想好表示数据的类型,格式,进而设计大概的逻辑结构,然后依次按输入模块,逻辑处理模块,输出模块来分析解决问题,以这样的思路去做题会好做很多。 #include<bits/stdc++.h> using namespace std; class Pixel{ //像素点的有关操作和属性定义 public: i

  • CCSP 201312-2 ISBN号码2019-11-18 09:50:36

    代码 #include <iostream> #include <string.h> using namespace std; int main() { int num = -1; int w=-1; char ISBN[14]; cin>>ISBN; num = (ISBN[0]-48)*1+(ISBN[2]-48)*2+(ISBN[3]-48)*3+(ISBN[4]-48)*4+(ISBN[6]-48)*5+(ISBN[7

  • 中国大学生计算机系统与程序设计竞赛 CCF-CCSP-2017 串行调度(serial)2019-10-04 18:56:01

    串行调度(serial)     除等价条件, 根据题意设置限制条件,然后求字典序最小拓扑序。   简洁版 #include<bits/stdc++.h>using namespace std;const int N=2e4+5;const int M=2e4+5;const int E=8e5+5;template <typename T>inline void read(T &x){ T f=1;char ch=getchar();x

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

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

ICode9版权所有