24 条题解
-
1
#include <queue> #include <math.h> #include <stack> #include <stdio.h> #include <iostream> #include <vector> #include <iomanip> #include <string.h> #include <algorithm> using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int main() { int a,b,c,d; cin >>a >>b >>c >>d; if(a+b>10) { cout << a*b; } else if(b+c > 5) { cout <<c*d; } else if(d<10 || a*c>100) { cout<<"Yes"; } else { cout<<"No"; } return 0; }
-
-1
#include #include <math.h> #include #include <stdio.h> #include #include #include #include <string.h> #include using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int main() { int a,b,c,d; cin >>a >>b >>c >>d; if(a+b>10) { cout << ab; } else if(b+c > 5) { cout <<cd; } else if(d<10 || a*c>100) { cout<<"Yes"; } else { cout<<"No"; } return 0; }
-
-1
#include <math.h> #include <stack> #include <stdio.h> #include <iostream> #include <vector> #include <iomanip> #include <string.h> #include <algorithm> using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int main() { int b,c,d; char a="你是猪"; cin >>b >>c >>d; if(a+b>10) { cout << a*b<<"你是猪"; } else if(b+c > 5) { cout <<c*d<<"你是猪"; } else if(d<10 || a*c>100) { cout<<"Yes"; } else { cout<<"No"; } return 0; }
-
-2
#include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
} #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
} #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
} #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
} #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
} #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
} #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
} #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
} #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
} #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
} #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;
} else if(d<10 || a*c > 100) { cout<<"Yes"; } else { cout<<"No"; } return 0;
}
信息
- ID
- 887
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 649
- 已通过
- 304
- 上传者