Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void) {
- int i, j, N, t, correct = 0, miss = 0;
- char s[101];
- scanf("%d", &N);
- for(i = 1;i <= N;i++){
- scanf("%d%s", &t, s);
- j = 0;
- while(s[j] != '\0'){
- j++;
- }
- if(12 * t / 1000 >= j)correct += j;
- else{
- correct += 12 * t / 1000;
- miss += j - 12 * t / 1000;
- }
- }
- printf("%d %d\n", correct, miss);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement