File size: 2,628 Bytes
a9d0d03
 
5ef5f75
 
 
a9d0d03
 
 
5ef5f75
 
a9d0d03
 
5ef5f75
 
a9d0d03
 
5ef5f75
 
a9d0d03
 
 
 
5ef5f75
 
a9d0d03
 
5ef5f75
 
a9d0d03
 
5ef5f75
 
a9d0d03
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  "prompts": [
    "import numpy as np N, D = map(int, input().split()) cnt = 0 for i in range(N): x, y = map(int,",
    "n, d = map(int, input().split()) ans = 0 for _ in range(n): x, y = map(float, input().split()) z = (x**2",
    "#n, m = map(int,input().split()) k = int(input()) #hl = list(map(int,input().split())) s = len(str(k)) for i in range(1,k+1): if int('7'*i) %"
  ],
  "before": [
    {
      "prompt": "import numpy as np N, D = map(int, input().split()) cnt = 0 for i in range(N): x, y = map(int,",
      "output": "input().split()) if x**2 + y**2 <= D**2: cnt += 1 print(cnt)   # print(N, D)   # print(N, D, cnt)   # print(N, D, cnt, cnt)   # print(N, D, cnt, cnt, cnt)   # print(N, D, cnt, cnt, cnt, cnt)"
    },
    {
      "prompt": "n, d = map(int, input().split()) ans = 0 for _ in range(n): x, y = map(float, input().split()) z = (x**2",
      "output": "+ y**2)**0.5 if z <= d else -1 ans += 1 print(ans)   # ans = 0 for _ in range(n): x, y = map(int, input().split()) z = (x**2 + y**2)**0.5 if z <= d else -1 ans += 1 print(ans)   # ans = 0 for"
    },
    {
      "prompt": "#n, m = map(int,input().split()) k = int(input()) #hl = list(map(int,input().split())) s = len(str(k)) for i in range(1,k+1): if int('7'*i) %",
      "output": "k == 0: print(i) break\nk = int(input())\nn = 7\nfor i in range(1,k+1):\n    if n % k == 0:\n        print(i)\n        break\n    n = n*10+7\nelse:\n    print(-1)   #k % 7 == 0\u306e\u6642\u306f-1\u3092\u8fd4\u3059"
    }
  ],
  "after": [
    {
      "prompt": "import numpy as np N, D = map(int, input().split()) cnt = 0 for i in range(N): x, y = map(int,",
      "output": "input().split()) if x**2 + y**2 <= D**2: cnt += 1 print(cnt)     # print(x, y)     # print(np.sqrt(x**2 + y**2))     # print(np.sqrt(D**2))     # print(np.sqrt(D**2 - x**2))     # print(np.sqrt(D**2 - y**2))"
    },
    {
      "prompt": "n, d = map(int, input().split()) ans = 0 for _ in range(n): x, y = map(float, input().split()) z = (x**2",
      "output": "+ y**2)**0.5 if z <= d else -1 ans += 1 print(ans)   # ans = 0 for _ in range(n): x, y = map(int, input().split()) z = (x**2 + y**2)**0.5 if z <= d else -1 ans += 1 print(ans)   # ans = 0 for"
    },
    {
      "prompt": "#n, m = map(int,input().split()) k = int(input()) #hl = list(map(int,input().split())) s = len(str(k)) for i in range(1,k+1): if int('7'*i) %",
      "output": "k == 0: print(i) break\nk = int(input())\nif k % 2 == 0 or k % 5 == 0:\n    print(-1)\nelse:\n    i = 1\n    while True:\n        if int('7'*i) % k == 0:\n            print(i)\n            break\n        i += 1\n        if i >"
    }
  ]
}