摘要:
示例代码: #include <stdio.h>#define N 30 int main(void){ int n = 0 , m = 0 , sum = 0; int i = 0 , j = 0 , k = 0 ,l = 0; int num[N][N] , tmp[N][N] , output 阅读全文
摘要:
代码示例: #include <stdio.h> int i = 0 ;int Primes(int a){ for (i = 2 ; i <= a/2 ; i ++) { if (a%i == 0) { return 0; } } return 1;} int main(void){ int a 阅读全文
摘要:
示例代码: #include <stdio.h>#define N 10 int main(void){ int i = 0 ; int len1 = 0 , len2 = 0 , flag = 0; char arr1[N] = {0} , arr2[N] = {0}; scanf("%s",&a 阅读全文
摘要:
示例代码: #include <stdio.h> int main(void){ int t = 0 , h = 0 , m = 0 , s = 0 ; scanf("%d",&t); h = t/3600 ; m = t%3600/60; s = t%3600%60; printf("%d:%d: 阅读全文