mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
d
This commit is contained in:
@ -1,12 +1,23 @@
|
||||
#include <bits/stdc++.h>
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
int main(){
|
||||
int n;
|
||||
cin >> n;
|
||||
cout <<n<<n<<n<<" "<<n<<n<<n<<" "<<n<<n<<n<<" "<<n<<n<<n<<endl;
|
||||
cout <<" "<<n<<" "<<n<<" "<<n<<" "<<" "<<n<<" "<<n<<" "<<n<<endl;
|
||||
cout <<n<<n<<n<<" "<<n<<" "<<n<<" "<<n<<n<<n<<" "<<n<<" "<<n<<endl;
|
||||
cout <<n<<" "<<" "<<n<<" "<<n<<" "<<n<<" "<<" "<<n<<" "<<n<<endl;
|
||||
cout <<n<<n<<n<<" "<<n<<n<<n<<" "<<n<<n<<n<<" "<<n<<n<<n<<endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user