logo资料库

2018招商银行软件测试笔试.docx

第1页 / 共4页
第2页 / 共4页
第3页 / 共4页
第4页 / 共4页
资料共4页,全文预览结束
招商银行笔试
Select Sno,Sname From Student st Where not exists ( Select Cno From Course cu Inner Join Teacher tc On cu.Tno=tc.Tno Where tc.Tname='白云' And Cno not in (Select Cno From SC Where Sno=st.Sno) )
#include using namespace std; void func(int N){ if (N<=0){ return; } int start = 1; int end = 2; int count = (N+1)/2; int sum = 1; while (start <= count){ if (sum == N){ for(int i=1;i
end++; } else{ sum -= start; start++; } } } int main(){ int sum; cin >> sum; cout << sum <<" = "; func(sum); //system("pause"); return 0; }
分享到:
收藏