message stringlengths 2 45.8k | message_type stringclasses 2
values | message_id int64 0 1 | conversation_id int64 254 108k | cluster float64 3 3 | __index_level_0__ int64 508 217k |
|---|---|---|---|---|---|
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Allen dreams of one day owning a enormous fleet of electric cars, the car of the future! He knows that this will give him a big status boost. As Allen is planning out all of the different types ... | instruction | 0 | 96,732 | 3 | 193,464 |
No | output | 1 | 96,732 | 3 | 193,465 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Allen dreams of one day owning a enormous fleet of electric cars, the car of the future! He knows that this will give him a big status boost. As Allen is planning out all of the different types ... | instruction | 0 | 96,733 | 3 | 193,466 |
No | output | 1 | 96,733 | 3 | 193,467 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Allen dreams of one day owning a enormous fleet of electric cars, the car of the future! He knows that this will give him a big status boost. As Allen is planning out all of the different types ... | instruction | 0 | 96,734 | 3 | 193,468 |
No | output | 1 | 96,734 | 3 | 193,469 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a plane like Figure 1 with 8 vertical and 8 horizontal squares. There are several bombs on that plane. Figure 2 shows an example (● = bomb).
| □ | □ | □ | □ | □ | □ | □ | □
--- | --- |... | instruction | 0 | 96,866 | 3 | 193,732 |
Yes | output | 1 | 96,866 | 3 | 193,733 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a plane like Figure 1 with 8 vertical and 8 horizontal squares. There are several bombs on that plane. Figure 2 shows an example (● = bomb).
| □ | □ | □ | □ | □ | □ | □ | □
--- | --- |... | instruction | 0 | 96,867 | 3 | 193,734 |
Yes | output | 1 | 96,867 | 3 | 193,735 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a plane like Figure 1 with 8 vertical and 8 horizontal squares. There are several bombs on that plane. Figure 2 shows an example (● = bomb).
| □ | □ | □ | □ | □ | □ | □ | □
--- | --- |... | instruction | 0 | 96,868 | 3 | 193,736 |
Yes | output | 1 | 96,868 | 3 | 193,737 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a plane like Figure 1 with 8 vertical and 8 horizontal squares. There are several bombs on that plane. Figure 2 shows an example (● = bomb).
| □ | □ | □ | □ | □ | □ | □ | □
--- | --- |... | instruction | 0 | 96,869 | 3 | 193,738 |
Yes | output | 1 | 96,869 | 3 | 193,739 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a plane like Figure 1 with 8 vertical and 8 horizontal squares. There are several bombs on that plane. Figure 2 shows an example (● = bomb).
| □ | □ | □ | □ | □ | □ | □ | □
--- | --- |... | instruction | 0 | 96,870 | 3 | 193,740 |
No | output | 1 | 96,870 | 3 | 193,741 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a plane like Figure 1 with 8 vertical and 8 horizontal squares. There are several bombs on that plane. Figure 2 shows an example (● = bomb).
| □ | □ | □ | □ | □ | □ | □ | □
--- | --- |... | instruction | 0 | 96,871 | 3 | 193,742 |
No | output | 1 | 96,871 | 3 | 193,743 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a plane like Figure 1 with 8 vertical and 8 horizontal squares. There are several bombs on that plane. Figure 2 shows an example (● = bomb).
| □ | □ | □ | □ | □ | □ | □ | □
--- | --- |... | instruction | 0 | 96,872 | 3 | 193,744 |
No | output | 1 | 96,872 | 3 | 193,745 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There is a plane like Figure 1 with 8 vertical and 8 horizontal squares. There are several bombs on that plane. Figure 2 shows an example (● = bomb).
| □ | □ | □ | □ | □ | □ | □ | □
--- | --- |... | instruction | 0 | 96,873 | 3 | 193,746 |
No | output | 1 | 96,873 | 3 | 193,747 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Yukiya, the owner of Aizuyama Ski Resort, has prepared a course for advanced skiers with obstacles and jumping hills. There are various ways to slide on the course, and users who can slide in al... | instruction | 0 | 96,882 | 3 | 193,764 |
Yes | output | 1 | 96,882 | 3 | 193,765 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Yukiya, the owner of Aizuyama Ski Resort, has prepared a course for advanced skiers with obstacles and jumping hills. There are various ways to slide on the course, and users who can slide in al... | instruction | 0 | 96,883 | 3 | 193,766 |
Yes | output | 1 | 96,883 | 3 | 193,767 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Yukiya, the owner of Aizuyama Ski Resort, has prepared a course for advanced skiers with obstacles and jumping hills. There are various ways to slide on the course, and users who can slide in al... | instruction | 0 | 96,884 | 3 | 193,768 |
Yes | output | 1 | 96,884 | 3 | 193,769 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Yukiya, the owner of Aizuyama Ski Resort, has prepared a course for advanced skiers with obstacles and jumping hills. There are various ways to slide on the course, and users who can slide in al... | instruction | 0 | 96,885 | 3 | 193,770 |
Yes | output | 1 | 96,885 | 3 | 193,771 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Yukiya, the owner of Aizuyama Ski Resort, has prepared a course for advanced skiers with obstacles and jumping hills. There are various ways to slide on the course, and users who can slide in al... | instruction | 0 | 96,886 | 3 | 193,772 |
No | output | 1 | 96,886 | 3 | 193,773 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Yukiya, the owner of Aizuyama Ski Resort, has prepared a course for advanced skiers with obstacles and jumping hills. There are various ways to slide on the course, and users who can slide in al... | instruction | 0 | 96,887 | 3 | 193,774 |
No | output | 1 | 96,887 | 3 | 193,775 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Yukiya, the owner of Aizuyama Ski Resort, has prepared a course for advanced skiers with obstacles and jumping hills. There are various ways to slide on the course, and users who can slide in al... | instruction | 0 | 96,888 | 3 | 193,776 |
No | output | 1 | 96,888 | 3 | 193,777 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
Yukiya, the owner of Aizuyama Ski Resort, has prepared a course for advanced skiers with obstacles and jumping hills. There are various ways to slide on the course, and users who can slide in al... | instruction | 0 | 96,889 | 3 | 193,778 |
No | output | 1 | 96,889 | 3 | 193,779 |
Provide a correct Python 3 solution for this coding contest problem.
<!--
Problem D
-->
Tally Counters
A number of tally counters are placed in a row. Pushing the button on a counter will increment the displayed value by one, or, when the value is already the maximum, it goes down to one. All the counters are of t... | instruction | 0 | 96,914 | 3 | 193,828 |
"Correct Solution:
```
import sys
readline = sys.stdin.readline
write = sys.stdout.write
def solve(C, N, M, range = range, min = min):
K = N // 4 + 1
S = [0]*K
T = [0]*K
U = [0]*(K+1)
for i in range(N-1):
U[0] = 10**18
for j in range(K):
U[j+1] = min(U[j], S[j])
k... | output | 1 | 96,914 | 3 | 193,829 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The Berland Forest can be represented as an infinite cell plane. Every cell contains a tree. That is, contained before the recent events.
A destructive fire raged through the Forest, and severa... | instruction | 0 | 97,081 | 3 | 194,162 |
No | output | 1 | 97,081 | 3 | 194,163 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The Berland Forest can be represented as an infinite cell plane. Every cell contains a tree. That is, contained before the recent events.
A destructive fire raged through the Forest, and severa... | instruction | 0 | 97,082 | 3 | 194,164 |
No | output | 1 | 97,082 | 3 | 194,165 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The Berland Forest can be represented as an infinite cell plane. Every cell contains a tree. That is, contained before the recent events.
A destructive fire raged through the Forest, and severa... | instruction | 0 | 97,083 | 3 | 194,166 |
No | output | 1 | 97,083 | 3 | 194,167 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The Berland Forest can be represented as an infinite cell plane. Every cell contains a tree. That is, contained before the recent events.
A destructive fire raged through the Forest, and severa... | instruction | 0 | 97,084 | 3 | 194,168 |
No | output | 1 | 97,084 | 3 | 194,169 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
There are n beacons located at distinct positions on a number line. The i-th beacon has position ai and power level bi. When the i-th beacon is activated, it destroys all beacons to its left (di... | instruction | 0 | 97,449 | 3 | 194,898 |
Yes | output | 1 | 97,449 | 3 | 194,899 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies and now, to help her identify the exact location... | instruction | 0 | 97,571 | 3 | 195,142 |
Tags: implementation
Correct Solution:
```
N = int(input())
first = []
second = []
for i in range(N):
first.append([s for s in input()])
for i in range(N):
second.append([s for s in input()])
def rotate_90(matrix):
return list(zip(*matrix[::-1]))
def flip(matrix):
return matrix[::-1]
def compare_matr... | output | 1 | 97,571 | 3 | 195,143 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies and now, to help her identify the exact location... | instruction | 0 | 97,572 | 3 | 195,144 |
Tags: implementation
Correct Solution:
```
N = int(input())
s1 = [list(input()) for i in range(N)]
s2 = [list(input()) for i in range(N)]
def rotate(s):
ret = [[None for i in range(N)] for j in range(N)]
for i in range(N):
for j in range(N):
ret[i][j] = s[j][N-1-i]
return ret
def v_mir... | output | 1 | 97,572 | 3 | 195,145 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies and now, to help her identify the exact location... | instruction | 0 | 97,573 | 3 | 195,146 |
Tags: implementation
Correct Solution:
```
import copy
n = int(input())
flg=0
mat1 = []
mat2 = []
mats = []
for i in range(0, n): mat1.append(tuple(input().strip()))
for i in range(0, n): mat2.append(tuple(input().strip()))
mats.append(mat2)
matu = copy.copy(mat2)
matv = copy.copy(mat2)
matv = list(zip(*matv))
mats.ap... | output | 1 | 97,573 | 3 | 195,147 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies and now, to help her identify the exact location... | instruction | 0 | 97,574 | 3 | 195,148 |
Tags: implementation
Correct Solution:
```
n=int(input())
ns=[]
for i in range(n):
s=input()
ns.append(s)
ns2=[]
for i in range(n):
s=input()
ns2.append(s)
def rotate(i,j):
return j,n-1-i
def flip(i,j):
return j,i
def main():
same=True
for i in range(n): # 0
for j in range(n):... | output | 1 | 97,574 | 3 | 195,149 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies and now, to help her identify the exact location... | instruction | 0 | 97,575 | 3 | 195,150 |
Tags: implementation
Correct Solution:
```
N = int(input())
m1 = []
m2 = []
ms = []
for n in range(N):
m1.append(input())
for n in range(N):
m2.append(input())
ms = [
m2,
[x[::-1] for x in m2],
[x for x in reversed(m2)],
]
a = []
for m in ms:
a.append(m)
a.append([x[::-1] for x in reversed... | output | 1 | 97,575 | 3 | 195,151 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies and now, to help her identify the exact location... | instruction | 0 | 97,576 | 3 | 195,152 |
Tags: implementation
Correct Solution:
```
#!/usr/bin/python3
import copy
def rotate90(n, f):
return [[f[n - j - 1][i] for j in range(n)] for i in range(n)]
def fliphor(n, f):
return [[f[i][n - j - 1] for j in range(n)] for i in range(n)]
def flipver(n, f):
return [[f[n - i - 1][j] for j in range(n)] f... | output | 1 | 97,576 | 3 | 195,153 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies and now, to help her identify the exact location... | instruction | 0 | 97,577 | 3 | 195,154 |
Tags: implementation
Correct Solution:
```
from collections import deque, defaultdict, Counter
from itertools import product, groupby, permutations, combinations
from math import gcd, floor, inf, log2, sqrt, log10
from bisect import bisect_right, bisect_left
from statistics import mode
from string import ascii_uppercas... | output | 1 | 97,577 | 3 | 195,155 |
Provide tags and a correct Python 3 solution for this coding contest problem.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies and now, to help her identify the exact location... | instruction | 0 | 97,578 | 3 | 195,156 |
Tags: implementation
Correct Solution:
```
def check(x, y):
return ''.join([''.join(s) for s in x]) == ''.join([''.join(s) for s in y])
re = int(input())
a = [list(input()) for i in range(re)]
b = [list(input()) for i in range(re)]
for i in range(4):
for j in range(2):
if check(a, b):
print... | output | 1 | 97,578 | 3 | 195,157 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies a... | instruction | 0 | 97,579 | 3 | 195,158 |
Yes | output | 1 | 97,579 | 3 | 195,159 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies a... | instruction | 0 | 97,580 | 3 | 195,160 |
Yes | output | 1 | 97,580 | 3 | 195,161 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies a... | instruction | 0 | 97,581 | 3 | 195,162 |
Yes | output | 1 | 97,581 | 3 | 195,163 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies a... | instruction | 0 | 97,582 | 3 | 195,164 |
Yes | output | 1 | 97,582 | 3 | 195,165 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies a... | instruction | 0 | 97,583 | 3 | 195,166 |
No | output | 1 | 97,583 | 3 | 195,167 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies a... | instruction | 0 | 97,584 | 3 | 195,168 |
No | output | 1 | 97,584 | 3 | 195,169 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies a... | instruction | 0 | 97,585 | 3 | 195,170 |
No | output | 1 | 97,585 | 3 | 195,171 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The stardate is 1977 and the science and art of detecting Death Stars is in its infancy. Princess Heidi has received information about the stars in the nearby solar system from the Rebel spies a... | instruction | 0 | 97,586 | 3 | 195,172 |
No | output | 1 | 97,586 | 3 | 195,173 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The campus has m rooms numbered from 0 to m - 1. Also the x-mouse lives in the campus. The x-mouse is not just a mouse: each second x-mouse moves from room i to the room i ⋅ x mod{m} (in fact, i... | instruction | 0 | 97,834 | 3 | 195,668 |
No | output | 1 | 97,834 | 3 | 195,669 |
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response.
The campus has m rooms numbered from 0 to m - 1. Also the x-mouse lives in the campus. The x-mouse is not just a mouse: each second x-mouse moves from room i to the room i ⋅ x mod{m} (in fact, i... | instruction | 0 | 97,836 | 3 | 195,672 |
No | output | 1 | 97,836 | 3 | 195,673 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You are an all-powerful being and you have created a rectangular world. In fact, your world is so bland that it could be represented by a r × c grid. Each cell on the grid represents a country. Each country has a dominant religion. There are... | instruction | 0 | 97,986 | 3 | 195,972 |
Tags: implementation, math
Correct Solution:
```
# not my code, just an edit of https://codeforces.com/contest/1281/submission/66929709
import sys
input = lambda: sys.stdin.readline().rstrip()
for i in ' '*int(input()):
a,b=map(int,input().split())
L=[]
M=['']*b
A=False
P=False
for j in ' '*a:
... | output | 1 | 97,986 | 3 | 195,973 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You are an all-powerful being and you have created a rectangular world. In fact, your world is so bland that it could be represented by a r × c grid. Each cell on the grid represents a country. Each country has a dominant religion. There are... | instruction | 0 | 97,987 | 3 | 195,974 |
Tags: implementation, math
Correct Solution:
```
#qn given an arr of size n for every i position find a min j such that j>i and arr[j]>arr[i]
#it prints the position of the nearest .
import sys
input = sys.stdin.readline
#qn given an arr of size n for every i position find a min j such that j>i and arr[j]>arr[i]
#it... | output | 1 | 97,987 | 3 | 195,975 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You are an all-powerful being and you have created a rectangular world. In fact, your world is so bland that it could be represented by a r × c grid. Each cell on the grid represents a country. Each country has a dominant religion. There are... | instruction | 0 | 97,988 | 3 | 195,976 |
Tags: implementation, math
Correct Solution:
```
import heapq
import math
from collections import *
from functools import reduce,cmp_to_key
import sys
input = sys.stdin.readline
M = mod = 10**9 + 7
def factors(n):return sorted(list(set(reduce(list.__add__,([i, n//i] for i in range(1, int(n**0.5) + 1) if n % i == 0))))... | output | 1 | 97,988 | 3 | 195,977 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You are an all-powerful being and you have created a rectangular world. In fact, your world is so bland that it could be represented by a r × c grid. Each cell on the grid represents a country. Each country has a dominant religion. There are... | instruction | 0 | 97,989 | 3 | 195,978 |
Tags: implementation, math
Correct Solution:
```
import sys
reader = (s.rstrip() for s in sys.stdin)
input = reader.__next__
def solve():
r,c = map(int, input().split())
board = [[int(j == "A") for j in input()] for i in range(r)]
board2 = [list(x) for x in zip(*board)]
s = sum(sum(board[i]) for i in r... | output | 1 | 97,989 | 3 | 195,979 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You are an all-powerful being and you have created a rectangular world. In fact, your world is so bland that it could be represented by a r × c grid. Each cell on the grid represents a country. Each country has a dominant religion. There are... | instruction | 0 | 97,990 | 3 | 195,980 |
Tags: implementation, math
Correct Solution:
```
# ------------------- fast io --------------------
import os
import sys
from io import BytesIO, IOBase
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
self._fd = file.fileno()
self.buffer = BytesIO()
self.wr... | output | 1 | 97,990 | 3 | 195,981 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You are an all-powerful being and you have created a rectangular world. In fact, your world is so bland that it could be represented by a r × c grid. Each cell on the grid represents a country. Each country has a dominant religion. There are... | instruction | 0 | 97,991 | 3 | 195,982 |
Tags: implementation, math
Correct Solution:
```
def fastio():
import sys
from io import StringIO
from atexit import register
global input
sys.stdin = StringIO(sys.stdin.read())
input = lambda : sys.stdin.readline().rstrip('\r\n')
sys.stdout = StringIO()
register(lambda : sys.__stdout__.write(sys.stdout.getval... | output | 1 | 97,991 | 3 | 195,983 |
Provide tags and a correct Python 3 solution for this coding contest problem.
You are an all-powerful being and you have created a rectangular world. In fact, your world is so bland that it could be represented by a r × c grid. Each cell on the grid represents a country. Each country has a dominant religion. There are... | instruction | 0 | 97,992 | 3 | 195,984 |
Tags: implementation, math
Correct Solution:
```
import sys
input = sys.stdin.readline
def getInt(): return int(input())
def getVars(): return map(int, input().split())
def getList(): return list(map(int, input().split()))
def getStr(): return input().strip()
## -------------------------------
t = getInt()
for _ in ... | output | 1 | 97,992 | 3 | 195,985 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.