2 条题解

  • 2
    @ 2023-2-9 18:48:44
    #include<iostream>
    using namespace std;
    int main(){
    	int a,b;
    	string n[10]={"","one","two","three","four","five","six","seven","eight","nine"};
    	cin>>a>>b;
    	if(0<a+b&&a+b<10)cout<<n[a+b];
    	else cout<<"None";
    	return 0;
    }
    
    • 0
      @ 2024-5-10 20:51:41

      #include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a+b1){ cout<<"one"; } else if(a+b2){ cout<<"two"; } else if(a+b3){ cout<<"three"; } else if(a+b4){ cout<<"four"; } else if(a+b5){ cout<<"five"; } else if(a+b6){ cout<<"six"; } else if(a+b7){ cout<<"seven"; } else if(a+b8){ cout<<"eight"; } else if(a+b==9){ cout<<"nine"; } else{ cout<<"None"; } return 0;

      }

      • 1

      信息

      ID
      875
      时间
      1000ms
      内存
      128MiB
      难度
      5
      标签
      递交数
      198
      已通过
      77
      上传者