为什么每个输出数据都是整数啊?

5 comments

  • @ 2024-7-9 11:35:05

    已修复数据

    • @ 2023-10-10 19:05:53

      #include #include using namespace std; int main() { char s[110]; scanf("%s", s); // 读入这个字符串,还可以 cin>>s; for (int i = 0 ; s[i] != '\0' ; i++) if ('a' <= s[i] && s[i] <= 'z') // 如果这个字符在'a'到'z'中间,说明是小写字母 s[i] -= 'a' - 'A'; // 变成对应的大写字母,减去偏移量 printf("%s\n", s); // 输出,还可 cout<<s<<endl; return 0; }

      • @ 2023-10-8 19:36:22

        #include using namespace std; int main () { int a,b,c; cin >>a>>b>>c; for (int x=1; x<=1000000;x++){

        int sm=20;
            if (a%x==b%x==c%x)
            if(sm>x)sm=x;
        cout<<x;
        

        }

        return 0;
        

        }

        • @ 2023-10-6 11:14:13
          #include<iostream>
          #include<cstdio>
          using namespace std;
          int main()
          {
              int a,b,c;
              scanf("%d%d%d",&a,&b,&c);
              if (a+b>c&&b+c>a&&a+c>b) printf("yes") ;
              else printf("no");
              return 0;
          }
          
          • @ 2023-10-5 20:49:48

            #include using namespace std; int main() { int n,j ; int y,g; cin>>n; for(int i=1;i<=n;i++){ for(int j=g;j<=i;j++){ cout<<j<<" "; } cout<<endl; }

            return 0; }

            • 1

            Information

            ID
            486
            Time
            1000ms
            Memory
            256MiB
            Difficulty
            8
            Tags
            # Submissions
            534
            Accepted
            74
            Uploaded By