摘要:
#include <stdio.h> #include <string.h> #define Maxsize 110 int main() { char line1[Maxsize]; char line2[Maxsize]; scanf("%s", line1); scanf("%s", line 阅读全文
posted @ 2019-11-06 10:45
ComMario
阅读(122)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <stdlib.h> #define Maxsize 110 int comp_inc(const void *first, const void *second); int columns[Maxsize]; int main() { int 阅读全文
posted @ 2019-11-06 10:45
ComMario
阅读(104)
评论(0)
推荐(0)
摘要:
#include <stdio.h> int main() { int n, h; scanf("%d%d", &n, &h); int temp, width=0; int i; for(i=0; i<n; ++i) { scanf("%d", &temp); if(temp<=h) ++widt 阅读全文
posted @ 2019-11-06 10:44
ComMario
阅读(117)
评论(0)
推荐(0)
摘要:
#include <stdio.h> int main() { int a, b; int n; scanf("%d", &n); scanf("%d", &a); int Count=1; int i; for(i=0; i<n-1; ++i) { scanf("%d", &b); if((a%1 阅读全文
posted @ 2019-11-06 10:42
ComMario
阅读(153)
评论(0)
推荐(0)
摘要:
#include <stdio.h> int main() { long long n, k; scanf("%I64d%I64d", &n, &k); long long even; if(n%2==0) even=n/2; else even=(n/2)+1; if(k<=even) print 阅读全文
posted @ 2019-11-06 10:41
ComMario
阅读(116)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <string.h> #include <stdbool.h> #define Maxsize 210 int main() { char sentence[Maxsize]; char wub[4]={'W', 'U', 'B'}; scan 阅读全文
posted @ 2019-11-06 10:41
ComMario
阅读(94)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <string.h> int main() { int a[5]; int total; memset(a, 0, sizeof(a)); int i; for(i=1; i<=4; ++i) { scanf("%d", &a[i]); } s 阅读全文
posted @ 2019-11-06 10:40
ComMario
阅读(127)
评论(0)
推荐(0)
摘要:
#include <stdio.h> int main() { long long ans; long long n; scanf("%I64d", &n); long long i; if(n%2==0) ans=((n/2)*((n/2)+1))-((n/2)*(n/2)); else ans= 阅读全文
posted @ 2019-11-06 10:39
ComMario
阅读(99)
评论(0)
推荐(0)
摘要:
#include <stdio.h> int main() { int k, n , w; scanf("%d%d%d", &k, &n, &w); int ans=(k*((w*(w+1))/2))-n; if(ans>0) printf("%d\n", ans); else printf("%d 阅读全文
posted @ 2019-11-06 10:39
ComMario
阅读(80)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <string.h> #define MAXSIZE 120 int main() { int cntlow=0; int cntupp=0; char str[MAXSIZE]; memset(str, 0, sizeof(str)); sc 阅读全文
posted @ 2019-11-06 10:37
ComMario
阅读(133)
评论(0)
推荐(0)


浙公网安备 33010602011771号