E - Helping the HR Gym - 102040E
Posted sutsuharayuki
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了E - Helping the HR Gym - 102040E相关的知识,希望对你有一定的参考价值。
一个计算迟到早退违纪扣分的东西
题意简单明了
情况有点多,分各种情况讨论,有点麻烦但是难度不大
一次性写的所以代码很乱,就当留给自己看吧
上代码:
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<bitset> #include<cassert> #include<cctype> #include<cmath> #include<cstdlib> #include<ctime> #include<deque> #include<iomanip> #include<list> #include<map> #include<queue> #include<set> #include<stack> #include<vector> #include <vector> #include <iterator> #include <utility> #include <sstream> #include <limits> #include <numeric> #include <functional> using namespace std; #define gc getchar() #define mem(a) memset(a,0,sizeof(a)) //#define sort(a,n,int) sort(a,a+n,less<int>()) #define ios ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<int,int> pii; typedef char ch; typedef double db; const double PI=acos(-1.0); const double eps=1e-6; const ll mod=1e9+7; const int inf=0x3f3f3f3f; const int maxn=1e5+10; const int maxm=100+10; bool compare(int a, int b) { return a < b;//升序 } int main() { int n = 0; char a[20]; int a1[6]; char s; while(1) { cin >>n; if(n == 0)break; int points = 0; while(n--) { cin >>a; s = a[0]; int pool = 0; int counter = 0; for(int i = 2;i<20;i++) { if(a[i]==‘:‘ || a[i]==‘