- 练54.4 整数ABC
题解
- 2024-6-9 13:57:31 @
#include<bits/stdc++.h> using namespace std; int a[3]; char str[3]; int main(){ scanf("%d %d %d",&a[0],&a[1],&a[2]); sort(a,a+3); scanf("%s",&str); for(int i=0;i<3;i++){ if(str[i]'A') printf("%d ",a[0]); else if(str[i]'B') printf("%d ",a[1]); else printf("%d ",a[2]); } return 0; }
0 comments
No comments so far...
Information
- ID
- 248
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 10
- Tags
- # Submissions
- 24
- Accepted
- 1
- Uploaded By