ccf
my_new_journey
这个作者很懒,什么都没留下…
展开
-
CCF认证-20160902-火车购票
#include<bits/stdc++.h>using namespace std;int seat[21][1] = {0};int main() { int n, k, y; cin >> n; for(int i = 0; i < n; i++) { cin >> k; int j = 0; while(k > ( 5...原创 2020-03-30 23:32:20 · 91 阅读 · 0 评论 -
CCF认证-20170302-学生排队
利用vector 由于它可以实现 指针加减很适合呢 哈哈哈#include<bits/stdc++.h>using namespace std;vector<int>vi;int main(){ int n, m, i = 1; cin>>n>>m; int k = n; while(n--){ vi.push_back(i++)...原创 2020-03-14 20:55:28 · 86 阅读 · 0 评论 -
CCF碰撞的小球
## CCF 201803-2 碰撞的小球#include<bits/stdc++.h>using namespace std;struct ball{ int s; bool direction; //true 为右移, false为左移。 };ball index[1050];int main(){ int n, L, t; cin >...原创 2020-03-13 22:08:29 · 72 阅读 · 0 评论