#include<stdio.h> #include<string.h> void main() { char a[100]; gets(a); if(strcmp(a,"长江")==0) printf("1"); else if(strcmp(a,"黄河")==0) printf("2"); }