摘要:
hdu 1090A+B for Input-Output Practice (II) 英文版题目: 中文版题目 简单的A+B问题 #include<iostream> using namespace std; int main() { int a, b; int T; cin >> T; while 阅读全文
摘要:
最大公约数(辗转相除法)递归 #include<stdio.h>#include<stdlib.h> void swap(int m, int n){ if (m < n) { int t = m; m = n; n = t; }}int fun(int m,int n){ if (m%n==0) 阅读全文
摘要:
数组求和 #include<stdio.h>#include<stdlib.h> int fun(int a[], int len){ int i,sum=0; if (len == 0) { return 0; } else{ for (i = 0; i < len; i++) { sum += 阅读全文