ICode9

精准搜索请尝试: 精确搜索
  • P1980 [NOIP2013 普及组] 计数问题2021-10-26 12:35:36

    #include<stdio.h> #include<string.h> #include<stdlib.h> char num[10]; int main() { int n, x; while(scanf("%d %d", &n, &x) != EOF) { int kase = 0; for(int i = 1; i <= n; i++) {

  • P1980 [NOIP2013 普及组] 计数问题2021-07-08 17:33:48

    题目描述 试计算在区间 11 到 nn的所有整数中,数字x(0 ≤ x ≤ 9)x(0≤x≤9)共出现了多少次?例如,在 11到1111中,即在 1,2,3,4,5,6,7,8,9,10,111,2,3,4,5,6,7,8,9,10,11 中,数字 11 出现了 44 次。 输入格式 22个整数n,xn,x,之间用一个空格隔开。 输出格式 11个整数,表示xx出现的次数。

  • 洛谷日记P1980 [NOIP2013 普及组] 计数问题2021-05-12 20:33:21

    题目描述 试计算在区间 11 到 nn的所有整数中,数字x(0 ≤ x ≤ 9)x(0≤x≤9)共出现了多少次?例如,在 11到1111中,即在 1,2,3,4,5,6,7,8,9,10,111,2,3,4,5,6,7,8,9,10,11 中,数字 11 出现了 44 次。 输入格式 22个整数n,xn,x,之间用一个空格隔开。 输出格式 11个整数,表示xx出

  • [P1980] 级数求和2020-09-01 18:32:27

    #include<stdio.h> #include<string.h> #include<stdlib.h> #define lu unsigned long long #define str(a,b) sprintf(a,"%llu",b) int main(){ lu n,x,t,rk=0; char*d; scanf("%llu %llu",&n,&x); lu cc(char a,lu b);

  • 洛谷p1980 计数问题2019-10-02 09:00:38

    题目描述 试计算在区间 111 到 nn n的所有整数中,数字x(0≤x≤9) x(0 ≤ x ≤ 9)x(0≤x≤9)共出现了多少次?例如,在 111到11 11 11中,即在 1,2,3,4,5,6,7,8,9,10,111,2,3,4,5,6,7,8,9,10,111,2,3,4,5,6,7,8,9,10,11 中,数字 111 出现了 444 次。 输入格式 222个整数n,xn,xn,x,之间用

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有