解答:
#include<iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a == b)cout << "Y" << endl;
else cout << "N" << endl;
cout << a * b << endl;
return 0;
}
解答:
#include<iostream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 2 == 0 && i % 3 != 0)cout << i << endl;
}
return 0;
}
其实上面都是超简单的题目,我感觉最近我有点懈怠了,心情有些浮躁,总觉得没立马理解就不想看了,我知道这样不好,那还是要改变心态,一步一个脚印。