Information
- ID
- 6962
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- # Submissions
- 100
- Accepted
- 21
- Uploaded By
#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;
}
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.