Incorrectly tagged problem

P1449 后缀表达式

baoligao @ 2019-11-11 20:07:13

It shouldn't be tagged "字符串" because l didn't use it.

#include <cstdio>

           int 
         S[1024]
       ={   0}  ;;
           int 
            p=
            0;
           char
            c;
           int 
            nn
            ;;

                      int 
                        main
                           (){
 for(c=0;c!='@';){ c=getchar();if
                           ( c
                        =='@'
                      ){;                  break
                                          ///
  ;}      if      (c
    ==          '.'
      ){      S[
  p]     =nn;;    ++
      p;      ;;
    ;;          nn
  =0      ;;      ;}           if
                               (c
                               ==
                              '+'
                       ){--p;if(p>0){S[p-
                               1]
                               +=
                               S[
                               p]
                               ;}        S[p]=0
                               ;}
                       ///
                                  ///

if(c=='-'){--p;if(p>0){
S[p-1]-=S[p];} S[p]=0;}
                                           ///
               if              (c
                 ==          '*'
                   ){      --
                     p;  if
                      (p>0
                    ){   S[
                  p-       1]
                *=           S[    p];
              }S[              p]   =0;}
;
        if
        (c

=='/'){--p;if(p>0){
S[p-1]/=S[p];;}S[p]

        =0
        ;}
  ;
                 if(         c==
                 0 +       '%'
                 ){;     --p
                       ;if
                     (p>    
                    0){      S[p
                  -1]       %= S
                 [p]         ;}S
               [p]                 =0;}
       ;;
     if((
       c>
       47
       )
       &&
       (c
       <
       58
       ))
    {nn*=10;
                                 ;
               nn
               +=
               c-
               48
               ;}
          }printf("%d"
           ,S[0]);;;;
             return 
               0;
               }

Record: R26835175


by baoligao @ 2019-11-11 20:07:41

Did you understand my code art?


by LanrTabe @ 2019-11-11 20:08:28


by Belarus @ 2019-11-11 20:08:31

你明明用了字符串。。。
还有你能不能发正常的代码,说中国话


by baoligao @ 2019-11-11 20:12:05

@Belarus Sorry, I didn't use anything to store the string.


by 文武武智障 @ 2019-11-11 20:14:43

@baoligao 你跟我讲字符数组不是字符串?

完了非要用STL才叫?


by Belarus @ 2019-11-11 20:16:18

@baoligao 你的几乎每一步都涉及了对字符的处理,归类为对字符串的处理


by CHENRUIJIE @ 2019-11-11 20:17:21

@baoligao Tror du, du kan tale engelsk, hvad slags magt sætter du i det?


by CHENRUIJIE @ 2019-11-11 20:18:44

直接把这个帖子举报到删了算了


by CHENRUIJIE @ 2019-11-11 20:18:55

已举报


by baoligao @ 2019-11-11 20:25:57

@Belarus WHAT???


| 下一页