跳到正文

题解

abc362A

sweeny1约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年3月12日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
using namespace std;
int r,g,b;
string s;
int main(){
  cin>>r>>g>>b>>s;
  if(s=="Red")cout<<min(g,b);
  else if(s=="Green")cout<<min(r,b);
  else cout<<min(r,g);
  return 0;
}

我不说什么了

原文