摘要:
#include<iostream> #include<cstring> using namespace std; int t[105]; int seat[105]; int rem[25]; int main() { int n; cin >> n; for(int i = 0 ; i < n 阅读全文
摘要:
话不多说,直接上100分代码: #include<iostream> using namespace std; struct { int x,y; } pos[4]; int page[21][10]; int block[4][4]; int Index = 0; int n,final = 20 阅读全文
摘要:
非常简单! 用两个数组,一个记录数据,另一个记录哪些位置的数据是有三个及以上相连的。 #include<iostream> using namespace std; int list[35][35]; int rec[35][35]; int main(){ int n,m; cin >> n >> 阅读全文
摘要:
有两种方法: 1.普通的方法: #include<iostream> using namespace std; int main(){ string str; cin >> str; int ans = 0; for(int i = 0 ; i < str.size(); i++){ ans = a 阅读全文
摘要:
#include<iostream> using namespace std; int run[12] = {31,29,31,30,31,30,31,31,30,31,30,31}; int ping[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; int 阅读全文
摘要:
#include<iostream> using namespace std; int list[501][501]; int main() { int n; cin >> n; for(int i = 1 ; i <= n ; i++) { for(int j = 1 ; j <= n ; j++ 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; string eple[101]; int main() { string src; cin >> src; int open = 0 , n = 0; cin >> open >> n; for(int i 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; int num[1000+7]; int n1[1000+7][1000+7]; int main() { int n; cin >> n; for(int i = 0 ; i < n ; i++) { cin 阅读全文