第三天 A1005 Spell It Right (20 分) 题目内容 Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specification: Each input file contains one test case. Each case occupies…
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and out's, you are supposed to find the ones who have unlocked a…
25/25,一遍过了,很开心. #include<bits/stdc++.h> using namespace std; struct record{ string id; string in_time; string out_time; }; vector<record> records; void solve(){ int m; cin>>m; int t=0; int unlockman=0; int lockman=0; string earliest_in,l…
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and out's, you are supposed to find the ones who have unlocked a…