代码搜索:while
找到约 10,000 项符合「while」的源代码
代码结果 10,000
www.eeworm.com/read/449044/7519484
m jac.m
function [x,st]=jac(a,b,n,x1)
D=zeros(n,n);
L=zeros(n,n);
U=zeros(n,n);
for i=1:n
for j=1:n
if j==i
D(i,j)=a(i,j);
end
if j
www.eeworm.com/read/448997/7520508
cpp algo0706.cpp
void BFSTraverse(Graph G, Status (*Visit)(int v )) {// 算法7.6
// 按广度优先非递归遍历图G。使用辅助队列Q和访问标志数组visited。
QElemType v,w;
queue Q;
QElemType u;
for (v=0; v
www.eeworm.com/read/448932/7521757
cpp 4881258_wa.cpp
#include
#include
#include
using namespace std;
int n,m;
struct zs
{
string in,out;
bool used;
}qz[55],qp[55];
char in[1000];
bool match(int &count)
{
int
www.eeworm.com/read/448932/7521761
cpp 4880211_wa.cpp
#include
#include
using namespace std;
int n,m;
struct place
{
string in,out;
}qp[55];
struct zs
{
string in,out;
bool used;
}qz[55];
char in[1000];
bool match(int &
www.eeworm.com/read/448932/7521763
cpp 4881283_wa.cpp
#include
#include
#include
using namespace std;
int n,m;
struct zs
{
string in,out;
bool used;
}qz[55],qp[55];
char in[1000];
bool match(int &count)
{
int
www.eeworm.com/read/448932/7521792
cpp 3140165_ac_0ms_280k.cpp
#include
using namespace std;
int f(int m,int n);
int main(){ int t,m,n,an; cin>>t;
while(t--) { cin>>m>>n; an=f(m,n); cout
www.eeworm.com/read/448932/7521796
cpp 3140163_ac_0ms_280k.cpp
#include
using namespace std;
int f(int m,int n);
int main(){ int t,m,n,an; cin>>t;
while(t--) { cin>>m>>n; an=f(m,n); cout
www.eeworm.com/read/448826/7525160
txt 021.txt
021
题目:猴子吃桃问题:猴子第一天摘下若干个桃子,当即吃了一半,还不瘾,又多吃了一个第二天早上又将剩下的桃子吃掉一半,又多吃了一个。以后每天早上都吃了前一天剩下的一半零一个。到第10天早上想再吃时,见只剩下一个桃子了。求第一天共摘了多少。
程序分析:采取逆向思维的方法,从后往前推断。
程序源代码:
main()
{
int day,x1,x2;
day=9 ...
www.eeworm.com/read/447573/7549405
cpp 数字游戏.cpp
#include
using namespace std;
const int N = 2009;
int n, m, a[N], b[N], f[N]={0};
void QSort( int h, int t ); // b >= >=
int main(){
cin >>n >>m;
int i, j, k;
for(