mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-11 00:30:27 +08:00
24 lines
439 B
C++
24 lines
439 B
C++
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int N;
|
|
cin >> N;
|
|
|
|
int count = 0;
|
|
for (int i = 0; i <= N; ++i) {
|
|
for (int j = 0; j <= N; ++j) {
|
|
for (int k = 0; k <= N; ++k) {
|
|
if (i != j && j != k && i != k && (i * 100 + j * 10 + k) % 2 != 0 && i != 0) {
|
|
++count;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
cout << count << endl;
|
|
|
|
return 0;
|
|
}
|