2 solutions
-
1
#include<stdio.h> int main(){ int T; scanf("%d",&T); int total_score=0; for(int i=0;i<T;i++){ int s,n; scanf("%d %d",&s,&n); int m=s*7/10; for(int o=0; o<n;o++){ s=s*95/100; } if(m>s){ total_score+=m; }else(total_score+=s); } printf("%d",total_score); return 0; }
Information
- ID
- 6962
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- # Submissions
- 88
- Accepted
- 19
- Uploaded By