user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x358,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x348(%rsp)
  xor    %eax,%eax
  mov    $0x0,%r15d
  lea    D28(%rip),%r13
  lea    D38(%rip),%rbp
  lea    D5(%rip),%r12
L47:
  lea    0x4(%rsp),%rdx
  mov    %rsp,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmp    $0x2,%eax
  jne    L127
  test   %r15d,%r15d
  jne    L36
L71:
  mov    $0x0,%eax
L157:
  movl   $0x0,0x10(%rsp,%rax,1)
  movl   $0x0,0x1a0(%rsp,%rax,1)
  add    $0x4,%rax
  cmp    $0x190,%rax
  jne    L157
  mov    (%rsp),%eax
  mov    %eax,%edx
  imul   0x4(%rsp),%edx
  sub    $0x1,%eax
  imul   %edx,%eax
  cmp    $0x1,%eax
  jle    L223
  mov    $0x0,%ebx
  jmp    L21
L36:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L71
L183:
  cmpb   $0x73,0x33f(%rsp)
  je     L5
  cmpb   $0x70,0x33f(%rsp)
  je     L209
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x10(%rsp,%rax,4)
  mov    0x8(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x1a0(%rsp,%rax,4)
  jmp    L5
L69:
  cmpb   $0x70,0x33f(%rsp)
  je     L5
  cmpb   $0x73,0x33f(%rsp)
  je     L182
  mov    0x8(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x10(%rsp,%rax,4)
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x1a0(%rsp,%rax,4)
  jmp    L5
L209:
  mov    0x8(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x10(%rsp,%rax,4)
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x1a0(%rsp,%rax,4)
  jmp    L5
L182:
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x10(%rsp,%rax,4)
  mov    0x8(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x1a0(%rsp,%rax,4)
  jmp    L5
L114:
  cmpb   $0x73,0x33f(%rsp)
  je     L112
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x10(%rsp,%rax,4)
  mov    0x8(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x1a0(%rsp,%rax,4)
L5:
  add    $0x1,%ebx
  mov    (%rsp),%eax
  mov    %eax,%edx
  imul   0x4(%rsp),%edx
  sub    $0x1,%eax
  imul   %eax,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  cmp    %ebx,%eax
  jle    L223
L21:
  lea    0xc(%rsp),%rcx
  lea    0x336(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  lea    0x33f(%rsp),%r8
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl 0x336(%rsp),%eax
  cmp    $0x73,%al
  je     L183
  cmp    $0x70,%al
  je     L69
  cmp    $0x72,%al
  jne    L114
  cmpb   $0x72,0x33f(%rsp)
  jne    L114
  jmp    L5
L112:
  mov    0x8(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x10(%rsp,%rax,4)
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cltq
  addl   $0x1,0x1a0(%rsp,%rax,4)
  jmp    L5
L223:
  cmpl   $0x0,(%rsp)
  jle    L141
  mov    $0x0,%ebx
  lea    D27(%rip),%r14
  jmp    L147
L35:
  mov    %r14,%rdi
  call   <puts@plt>
L210:
  lea    0x1(%rbx),%r15d
  add    $0x1,%rbx
  cmp    %ebx,(%rsp)
  jle    L47
L147:
  mov    0x10(%rsp,%rbx,4),%eax
  mov    %eax,%edx
  add    0x1a0(%rsp,%rbx,4),%edx
  pxor   %xmm1,%xmm1
  cvtsi2ss %edx,%xmm1
  pxor   %xmm2,%xmm2
  ucomiss %xmm2,%xmm1
  jp     L276
  je     L35
L276:
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    %r12,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L210
L141:
  mov    $0x0,%r15d
  jmp    L47
L127:
  mov    0x348(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L53
  mov    $0x0,%eax
  add    $0x358,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L53:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D28
data_type: string
name: read_data
arguments: data_label: D38
data_type: string
name: read_data
arguments: data_label: D5
data_type: string
name: read_data
arguments: data_label: D27
data_type: string

tool: D28: %d %d

tool: D38: %d %s %d %s

tool: D5: %.3f


tool: D27: -

assistant: ```c
int main(void) {
  int n, k, v, u, i = 0, pw[100], pl[100];
  float w;
  char vt[9], ut[9];
  char type[3] = {'s', 'p', 'r'};
  while (scanf("%d %d", &n, &k) == 2) {
    if (i != 0)
      printf("\n");
    for (i = 0; i < 100; i++) {
      pw[i] = 0;
      pl[i] = 0;
    }
    for (i = 0; i < k * n * (n - 1) / 2; i++) {
      scanf("%d %s %d %s", &v, vt, &u, ut);
      if (vt[0] == type[0] && ut[0] == type[0])
        ;
      else if (vt[0] == type[1] && ut[0] == type[1])
        ;
      else if (vt[0] == type[2] && ut[0] == type[2])
        ;
      else if (vt[0] == type[0]) {
        if (ut[0] == type[1]) {
          pw[v - 1]++;
          pl[u - 1]++;
        } else {
          pw[u - 1]++;
          pl[v - 1]++;
        }
      } else if (vt[0] == type[1]) {
        if (ut[0] == type[0]) {
          pw[u - 1]++;
          pl[v - 1]++;
        } else {
          pw[v - 1]++;
          pl[u - 1]++;
        }
      } else {
        if (ut[0] == type[0]) {
          pw[v - 1]++;
          pl[u - 1]++;
        } else {
          pw[u - 1]++;
          pl[v - 1]++;
        }
      }
    }
    for (i = 0; i < n; i++) {
      w = pw[i] + pl[i];
      if (w == 0)
        printf("-\n");
      else {
        w = pw[i] / w;
        printf("%.3f\n", w);
      }
    }
  }
  return 0;
}
```