This commit is contained in:
HuangHai
2025-08-30 18:35:01 +08:00
commit 1f397eca87
6258 changed files with 1487241 additions and 0 deletions

27
TangDou/XiTi/1038.cpp Normal file
View File

@@ -0,0 +1,27 @@
#include <bits/stdc++.h>
using namespace std;
int main()
{
char chr;
int n;
cin >> chr >> n;
switch (chr)
{
case 'P':
cout << n * 0.7 << endl;
break;
case 'G':
cout << n * 0.8 << endl;
break;
case 'S':
cout << n * 0.9 << endl;
break;
default:
cout << n * 0.95 << endl;
break;
}
return 0;
}