火星人

P4036 [JSOI2008] 火星人

##暴力水过了wwwwwwwwwwwwwww ``` #include // //#define LOCAL FLANDRE KAWAII #ifndef LOCAL constexpr int SIZE(1'9';ch=getchar()) f^=ch=='-'; for(;ch>='0'&&ch ......
火星人 P4036 4036 2008 JSOI

[NOIP2004 普及组] 火星人

题目简单,A完之后看题解,看到大佬的一片题解有感而发,这位大佬的DFS确实精妙 看完题之后你会发现只需要5行就可以解决,c++自带的全排列函数,但是有位大佬手写DFS的方法非常巧妙,直接精确定位,让我对dfs的理解多多少少又加深一层 题目描述 人类终于登上了火星的土地并且见到了神秘的火星人。人类和火 ......
火星人 NOIP 2004

洛谷P1088火星人

#include<bits/stdc++.h> using namespace std; int n,m; int main() { cin>>n>>m; int ord[n+1]; for(int i=1;i<=n;++i) cin>>ord[i]; for(int i=1;i<=m;++i) n ......
火星人 P1088 1088

洛谷1088 火星人&&next_permutation()函数用法

1 #include <bits/stdc++.h> 2 using namespace std; 3 int n,m,a[100]; 4 int main(){ 5 cin>>n>>m; 6 int a[n+1]; 7 for(int i=1;i<=n;++i) 8 cin>>a[i]; 9 fo ......
共4篇  :1/1页 首页上一页1下一页尾页