招商银行笔试
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;iend++;
}
else{
sum -= start;
start++;
}
}
}
int main(){
int sum;
cin >> sum;
cout << sum <<" = ";
func(sum);
//system("pause");
return 0;
}