2 条题解

  • 0
    @ 2022-9-24 21:15:09
    n = input().split()
    for i in range(len(n)):
        n[i] = int(n[i])
    v1,v2,v3,v4,v5 = 0,0,0,0,0
    for i in range(len(n)):
        for j in range(1,6):
            if n[i] == j:
                exec("v" + str(j) + " += 1")
                break
    for i in range(1,6):
        print(str(i) + " ",end='')
        exec('print(v'+ str(i) + ')')
    
    • 0
      @ 2021-11-29 21:41:41
      l = input().split()
      ans = [0,0,0,0,0,0]
      for i in range(len(l)):
          ans[int(l[i])]+=1
      for i in range(1,6):
          print(i,ans[i])
      
      • 1

      信息

      ID
      1357
      时间
      1000ms
      内存
      128MiB
      难度
      6
      标签
      递交数
      67
      已通过
      19
      上传者