Initial commit

This commit is contained in:
2025-03-14 22:39:32 +08:00
commit 7b1e0f329e
38 changed files with 1153 additions and 0 deletions

17
15lanqiao/test1-2.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include<bits/stdc++.h>
using namespace std;
int main() {
int ans = 0;
for(int i = 1; i <=50; i++){
for(int j = i + 1; j<=50; j++){
if(!( (i >= 1 && i<= 7) && (j >= 1 && j <= 7) )) ans++;
// i和j不能同时满足都在[1, 7]范围内
}
}
cout << ans << endl;
return 0;
}
/* 枚举法
*/