1 条题解

  • 0
    @ 2025-4-12 21:43:13

    Pascal :

    var
      n:string;
      i,sum,t,m:longint;
    begin
      readln(n);
      if pos('GB',n)<>0 then
        begin
          t:=pos('GB',n);
          val(copy(n,1,t-1),m);
          sum:=m*1024*1024;write('Cheng',' ','xu',' ','you:',sum,' ','ti');
        end
        else if pos('MB',n)<>0 then
          begin
            t:=pos('MB',n);
          val(copy(n,1,t-1),m);
          sum:=m*1024;write('Cheng',' ','xu',' ','you:',sum,' ','ti');
          end
          else write('error');
       end.
    
    • 1

    信息

    ID
    1260
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者