Problem:


Score : 100 points

Problem Statement

We have three boxes A, B, and C, each of which contains an integer.

Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.

We will now do the operations below in order. Find the content of each box afterward.  

Swap the contents of the boxes A and B

Swap the contents of the boxes A and C

Constraints

1 \leq X,Y,Z \leq 100

All values in input are integers.

Input

Input is given from Standard Input in the following format:

X Y Z

Output

Print the integers contained in the boxes A, B, and C, in this order, with space in between.

Sample Input 1

1 2 3

Sample Output 1

3 1 2

After the contents of the boxes A and B are swapped, A, B, and C contain 2, 1, and 3, respectively.

Then, after the contents of A and C are swapped, A, B, and C contain 3, 1, and 2, respectively.  

Sample Input 2

100 100 100

Sample Output 2

100 100 100

Sample Input 3

41 59 31

Sample Output 3

31 41 59



Sample input:
1 2 3


Sample output:
3 1 2

Submission status: Runtime Error

Solution code:
a = int(input())

N = [1,2,3,4,56,7,8,9]

for x in range(a):
  tmp = N[x]
  if tmp%10 != 0:
    N.append(tmp*10+tmp%10-1)
  N.append(tmp*10+tmp%10)
  if tmp%10 != 9:
    N.append(tmp*10+tmp%10+1)
print(N[a-1])

Submission status: Runtime Error

Solution code:
X,Y,Z = map(int,input().split())
print(f"{Z} {X} {Y}")

Submission status: Runtime Error

Solution code:
from sys import argv
X, Y, Z = argv

A = Z
B = X
C = Y

print(f"{A} {B} {C}")

Submission status: Runtime Error

Solution code:
X = int(input())
Y = int(input())
Z = int(input())

A = Z
B = X
C = Y

print(f"{A} {B} {C}")

Submission status: Runtime Error

Solution code:
X = input()
Y = input()
Z = input()

A = Z
B = X
C = Y

print(f"{A} {B} {C}")

Submission status: Runtime Error

Solution code:
X Y Z = list(map(int,input().split()))

print(li[2] + " " + li[0] + " " + li[1])

Submission status: Runtime Error

Solution code:
#スペース区切りの入力
N, K = (int(x) for x in input().split())
# 変換
n = abs(N)
k = abs(K)

while n > abs(n - k):
  n = n - k
print(abs(n))

Submission status: Runtime Error

Solution code:
#include<stdio.h>

int main()
{
    int X, Y, Z;
    scanf("%d%d%d",&X,&Y,&Z);
    printf("%d %d %d\n",Z,X,Y);
    return 0;
}

Submission status: Runtime Error

Solution code:
n = int(input())

if '7' in str(n):
  print('Yes')
else:
  print('NO')

Submission status: Runtime Error

Solution code:
print(31 41 59)

Submission status: Runtime Error

Solution code:
a

Submission status: Runtime Error

Solution code:
#gcdは3.4.3だとfractionsにある
#from fractions import gcd

from math import gcd
import math

from math import factorial as f

from math import ceil,floor,sqrt


import bisect
import re
import heapq


from copy import deepcopy
import itertools

from sys import exit

ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

yes = "Yes"
no = "No"

def main():
    a,b,c = mi()
    a,b = b,a
    a,c = c,a
    print(a,b,c)



main()

Submission status: Runtime Error

Solution code:
 X, Y, Z = map(int, input().split())
print(Z,X,Y)

Submission status: Runtime Error

Solution code:
n,m=map(int,input().split())
a=list(map(int,input().split()))
mod=1/(4*m)
ch=sum(a)*mod
r=0
for i in range(n):
  if a[i]>=ch:
    r+=1
  if r==m:
    print('Yes')
    break
else:
  print('No')

Submission status: Runtime Error

Solution code:
n,m=map(int,input().split())
a=list(map(int,input().split()))
mod=1/(4*m)
ch=sum(a)*mod
r=0
for i in range(n):
  if a[i]>=ch:
    r+=1
  if r==m:
    print('Yes')
    break
else:
  print('No')

Submission status: Runtime Error

Solution code:
a, b, c = map(int(), input().split())
print(a +' '+b+' '+c)

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
print(a +' '+b+' '+c)

Submission status: Runtime Error

Solution code:
X,Y,Z= int(input())
print(Z,X,Y)

Submission status: Runtime Error

Solution code:
abc = input().split() 
abc[0],abc[1],abc[2] = abc[2],abc[0],abc[1]
print(f'{abc[0]} {abc[1]} {abc[2]}')

Submission status: Runtime Error

Solution code:
abc = list(map(int, input().split()))
abc[0],abc[1],abc[2] = abc[2],abc[0],abc[1]
print(f'{abc[0]} {abc[1]} {abc[2]}')

Submission status: Runtime Error

Solution code:
import copy
abc = list(map(int, input().split()))
ABC = copy.copy(abc)
ABC[0] = abc[2]
ABC[1] = abc[0]
ABC[2] = abc[1]
print(f'{ABC[0]} {ABC[1]} {ABC[2]}')

Submission status: Runtime Error

Solution code:
A,B,C=[int(x) for x in input().split(" ")]
temp=B
B=A
A=C
C=temp
print(A , B , c)

Submission status: Runtime Error

Solution code:
a, b, c = map(int, split(input()))
print(c, a, b)

Submission status: Runtime Error

Solution code:
num = []
vote = []
num = list(map(int,input().split()))
vote = list(map(int,input().split()))
N = num[0]
M = num[1]
j = (sum(vote)/(4*M)
#print(j)

cnt = 0
for i in vote:
    if  i>=j:
        cnt += 1
    else:
        pass
#print(cnt)
if M<=cnt:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
x,y,z = input()
print(z,y,x)

Submission status: Runtime Error

Solution code:
def main():
    A, B, C = map(int, input().split(' '))
    A, B = B, A
    A, C = C, A
    pritn(A, B, C)
    
    
main()

Submission status: Runtime Error

Solution code:
x, y, z = map(int, input().split())
lis = [x, y, z]
print("".join(lis))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
print(c, a, b)

Submission status: Runtime Error

Solution code:
return X Y Z

Submission status: Runtime Error

Solution code:
X, Y, Z = input()
A = X
B = Y
C = Z

B2 = A
A2 = B

A3 = C
C3 = A2

print(A3, B2, C3)

Submission status: Runtime Error

Solution code:
data = input().split()

i = [int(n) for n in data]

print(f"{i[2]} {i[0]} {i[1]}")

Submission status: Runtime Error

Solution code:
K = int(input())

if K < 10:
  print(K)
else:
  count = 9

queue = [1,2,3,4,5,6,7,8,9]

while count != K:
  for x in queue:
    if x%10 != 0:
      queue.append(10*x + (x%10) - 1)
      count += 1
      if count == K:
        break

    queue.append(10*x + (x%10))
    count += 1
    if count == K:
      break

    if x%10 != 9:
      queue.append(10*x + (x%10) + 1)
      count += 1
      if count == K:
        break

print(queue[-1])

Submission status: Runtime Error

Solution code:
#!/usr/bin/python3

import sys
# input = sys.stdin.readline
sys.setrecursionlimit(100000)
INF = float('inf')
MOD = 10**9+7
EPS = 10**-7

#N = int(input())
#A = [int(x) for x in input().split()]
#V = [[0] * 100 for _ in range(100)]

A, B, C = [x for x in input().split()]
print(f"{C} {A} {B}")

Submission status: Runtime Error

Solution code:
input_list = input().split()
a = int(input_list[2])
b = int(input_list[0])
c = int(input_list[1])
print("{} {} {}".format(a, b, c)

Submission status: Runtime Error

Solution code:
nm = input().split(" ")
n = int(nm[0])
m = int(nm[1])

a = input().split(" ")

total = 0
for v in a:
  total += int(a)
  
mv = total / (4 * m)
q = 0
for e in a:
  e = int(e)
  if e >= mv:
    q += 1
    
if q >= m:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
mport sys
input = sys.stdin.readline

a, b, c = list(map(int, input().split()))
x = a
a = b
b = x

x = a
a = c
c = x

print(a, b, c)

Submission status: Runtime Error

Solution code:
1 2 3

li = input().split()

print(li[3] + " " + li[2] + " " + li[1])

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N, M = map(int, input().split())
A = list(map(int, input().split()))
cnt = 0
for Ai in A:
    k = 1/(4*M)
    if (sum(A))*k <= Ai:
        cnt += 1
if cnt >= M:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a, b, c = [int(x) for x in input().split()
a, b = b, a
a, c = c, a
print (a,b,c)

Submission status: Runtime Error

Solution code:
x,y,z = input().split
print(z,x,y)

Submission status: Runtime Error

Solution code:
x,y,z = map(int,input().split)
print(z,x,y)

Submission status: Runtime Error

Solution code:
x,y,z = map(int,input().split)
new_list = [z,x,y]
print((" ").join(new_list))

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split())
a = list(map(int, input().split()))

a.sort(reverse=True)

thold = sum(a) // (4 * m)

if a[m] <= thold:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(input())

A,B = B,C
A,C = C,A

print(A,B,C)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(input())

A_b = B
B_a = A

A_c = C
C_a = A_b
print(A_c,B_a,C_a)

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input().split())
print(f"{c} {a} {b}")

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
A = list(map(int, input().split()))
 
sum_A =0
for i in range(N):
    sum_A += A[i]

ans = 0
for i in range(N):
    if (4*M*A[i] < sum_A):
        ans+=1
    else:
    	ans+=0
    	
if (ans >= M):
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:

inputs = input_line.split(' ')
a, b, c = [int(s) for s in inputs]
print("{} {} {}".format(c, a, b))

Submission status: Runtime Error

Solution code:
li = list(map(int, input().split(" ")))
print(f"{li[2]} {li[0]} {li[1]}")

Submission status: Runtime Error

Solution code:
li = input().split(" ")
print(f"{li[2]} {li[0]} {li[1]}")

Submission status: Runtime Error

Solution code:
user = int(input("Give a list of number:"))
print(user[-1]+user[1]+user[0])

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

print("c"),
print("a"),
print("b"),

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

print('b,a,c')

Submission status: Runtime Error

Solution code:
A = input()
B = input()
C = input()

D = A
A = B
B = D

D = A
A = C
C = D

print(A,B,C)

Submission status: Runtime Error

Solution code:
in = input().split()

print('%s %s %s' % (in[2],in[0],in[1]))

Submission status: Runtime Error

Solution code:
in = input()

print('%s %s %s' % (in[2],in[0],in[1]))

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3

(x, y, z) = input().strip().split()
(x,y) = (y,x)
(x,z) = (z,x)
print(f'{x} {y} {z}')

Submission status: Runtime Error

Solution code:
a, b, c = list(map(int, input()))
print(c, a, b)

Submission status: Runtime Error

Solution code:
import collections
def prime_factorize(n):
    a = []
    while n%2 == 0:
        a.append(2)
        n//=2
    f =3
    while f*f <= n:
        if n%f == 0:
            a.append(f)
            n//=f
        else:
            f +=2
    if n != 1:
        a.append(n)
    return a

# N-1の約数を数える
N = int(input())
factor = collections.Counter(prime_factorize(N-1))
K = 1
for i in list(factor.values()):
    K *= i+1
K -=1
for f in range(2, int(N**0.5)+1):
    n = N
    if n%f != 0:
        continue
    while n%f ==0:
        n//=f
    if n%f ==1 or n==1:
        K+=1
#最後は自分自身を加える。
K +=1
print(K)

Submission status: Runtime Error

Solution code:
A, B = B, A
A, C = C, A

print(f'{A} {B} {C}')

Submission status: Runtime Error

Solution code:
import sys
a, b, c = int(sys.stdin.readline().split())

print(c, a, b)

Submission status: Runtime Error

Solution code:
A,B,C = input()
A, B = B, A
A, C = C, A

print(f'{A} {B} {C}')

Submission status: Runtime Error

Solution code:
A,B,C = [int(i) for i in input().split(' ')]


A, B = B, A
A, C = C, A

print(f'{A} {B} {C}')

Submission status: Runtime Error

Solution code:
A,B,C = [int(i) for i in input().split(' ')]


temp = A
A = B
B = temp

temp = A
A = C
C = temp

print(f'{A} {B} {C}')

Submission status: Runtime Error

Solution code:
A,B,C = [int(i) for i in input().split(' ')]

temp = A
A = B
B = temp

temp = A
A = C
C = temp

print(f'{A} {B} {C}')

Submission status: Runtime Error

Solution code:
A,B,C = [int(i) for i in input().split(' ')]

temp = A
A = B
B = temp
temp = A
A = C
C = temp

print(f'{A} {B} {C}')

Submission status: Runtime Error

Solution code:
A , B, C = int(input()).split(' ')
temp = 0
temp = A
A = B
B = temp
temp = A
A = C
C = temp
print(f'{A} {B} {C}')

Submission status: Runtime Error

Solution code:
n,m = map(int, input().split())
a = []
for i in range(n)
a[i] = list(map(int, input().split()))[i]
sort(a)
if a[m-1] > 1/4*m:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n,m = map(int, input().split())
a = []
for i in range(n)
a[i] = list(input().split())[i]
sort(a)
if a[m-1] > 1/4*m:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n=input().split()
m=input().split()

N=n[0]
Nn=n[1]
l = 0

for i in range(int(N)):
    if int(m[i])/(int(Nn)*4) >= 1:
        l+=1

if l >= int(Nn) :
    print("Yes")
else :
    print("No")

Submission status: Runtime Error

Solution code:
N,M = map(int,input().split())
A = list(map(int,input().split()))
shreshold = sum(A)/(4*M)
ret = [a for a in A if a >= shreshold]
if len(ret) < M:
    print('no')
else:
    print('yes')

Submission status: Runtime Error

Solution code:
n,m=map(int,input().split())
a=list(map(int,input().split()))
S=sum(a)
p=0
for i in range(n):
       if a[i]>=S/(4*m):
              p+=1
if p>=m:
       print("Yes")
else:
       print("No")

Submission status: Runtime Error

Solution code:
X=1
Y=2
Z=3

A=Y
B=X
C=A
A=Z

Print(A,B,C)

Submission status: Runtime Error

Solution code:
X,Y,Z = int(input().split())
n = X
X = Z
Z = Y
Y = n
print(X, Y, Z)

Submission status: Runtime Error

Solution code:
A=1
B=2
C=3
int stoc
stoc=A
A=B
B=stoc
stoc=A
A=C
C=stoc

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
#define reps(i,a,b) for(long long int i=a;i<b;i++)
#define rep(i,a) for(long long int i=0;i<a;i++)
typedef long long int ll;
using namespace std;

int main(){
	int a,b,c:
  	cin>>a>>b>>c;
  	cout<<c<<a<<b;
  	return 0;
}

Submission status: Runtime Error

Solution code:
%%time
import scipy.stats
from sklearn.datasets import load_breast_cancer
from sklearn.svm import LinearSVC
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import RandomizedSearchCV
from sklearn.model_selection import train_test_split
from sklearn.metrics import f1_score

import pandas as pd

#乳癌データの読み込み
df=pd.read_csv("ダミーデータ.csv",index_col=0)
X=df.iloc[:, 1:].values.tolist()
y=df["y"].values

print(X)

#条件設定
max_score = 0
SearchMethod = 0
LSVC_grid = {LinearSVC(): {"C": [10 ** i for i in range(-5, 6)],
                           "multi_class": ["ovr", "crammer_singer"],
                           "class_weight": ["balanced"],
                           "random_state": [i for i in range(0, 101)]}}
LSVC_random = {LinearSVC(): {"C": scipy.stats.uniform(0.00001, 1000),
                             "multi_class": ["ovr", "crammer_singer"],
                             "class_weight": ["balanced"],
                             "random_state": scipy.stats.randint(0, 100)}}

#トレーニングデータ、テストデータの分離
train_X, test_X, train_y, test_y = train_test_split(X, y, test_size=0.2, random_state=0)

#グリッドサーチ
for model, param in LSVC_grid.items():
    clf = GridSearchCV(model, param)
    clf.fit(train_X, train_y)
    pred_y = clf.predict(test_X)
    score = f1_score(test_y, pred_y, average="micro")

    if max_score < score:
        max_score = score
        best_param = clf.best_params_
        best_model = model.__class__.__name__

#ランダムサーチ
for model, param in LSVC_random.items():
    clf =RandomizedSearchCV(model, param)
    clf.fit(train_X, train_y)
    pred_y = clf.predict(test_X)
    score = f1_score(test_y, pred_y, average="micro")

    if max_score < score:
        SearchMethod = 1
        max_score = score
        best_param = clf.best_params_
        best_model = model.__class__.__name__

if SearchMethod == 0:
    print("サーチ方法:グリッドサーチ")
else:
    print("サーチ方法:ランダムサーチ")
print("ベストスコア:{}".format(max_score))
print("モデル:{}".format(best_model))
print("パラメーター:{}".format(best_param))

#ハイパーパラメータを調整しない場合との比較
model = LinearSVC()
model.fit(train_X, train_y)
score = model.score(test_X, test_y)
print("")
print("デフォルトスコア:", score)

Submission status: Runtime Error

Solution code:
from collections import deque


k = int(input())
d = deque([1,2,3,4,5,6,7,8,9])

for i in range(k):
    a = d.popleft()
    if a % 10 != 0:
        d.append(a*10 + a % 10 - 1)
    d.append(a*10 + a % 10)
    if a % 10 != 9:
        d.append(i*10 + i % 10 + 1)

print(a)

Submission status: Runtime Error

Solution code:
a,b,c= map(int, input().split())
print(a+' '+b+' '+c)

Submission status: Runtime Error

Solution code:
 a, b,c = map(int, input().split())
  print(a,b,c)

Submission status: Runtime Error

Solution code:
def is_lunlun(i):
    list_i = list(str(i))
    for j in range(len(list_i)-1):
        if int(list_i[j]) == 0:
            if int(list_i[j+1]) not in [1,9,0]:
                return False
        elif int(list_i[j]) == 1:
            if int(list_i[j+1]) not in [0,1,2]:
                return False
        elif int(list_i[j]) == 9:
            if int(list_i[j+1]) not in [8,9]:
                return False
        else:
            if abs(int(list_i[j]) - int(list_i[j+1])) > 1:
                return False
    return True



if __name__ == '__main__':
    k = int(input())
    lunlun = (i for i in range(3234566667) if is_lunlun(i))
    for count, i in enumerate(lunlun):
        if count == k:
            print(i)
            break

Submission status: Runtime Error

Solution code:
n = int(input())


queueList = []
oldList = []
for i in range(1,10):
	queueList.append(i)
# print(queueList)
if n < len(queueList):
	print(queueList[n-1])
	exit()
while(True):
	headElement = queueList[0]
	queueList.pop(0)
	oldList.append(headElement)
	for i in range(-1,2):
		newElement = headElement % 10 + i
		if newElement < 0 or 9 < newElement:
			continue
		if not (headElement*10 + newElement in oldList or headElement*10 + newElement in queueList):
			queueList.append(headElement*10 + newElement)
	if len(oldList) == n:
		break
print(oldList[-1])
# print(queueList[0])

Submission status: Runtime Error

Solution code:
A = list(map(int, input().split()))
print(A[3],A[1],A[2])

Submission status: Runtime Error

Solution code:
A = list(map(int, input().split()))
print(A[3], A[1], A[2])

Submission status: Runtime Error

Solution code:
x = [int(i) for i in input().split(' ')]
print(x[3], x[0], x[1])

Submission status: Runtime Error

Solution code:
a,b,c=(int(x) for x in input().split())
 
print(str(c)+" "+str(a)+" " + str(b) " ")

Submission status: Runtime Error

Solution code:
a,b,c=input().split()
 
print(str(c)+" "+str(a)+" " + str(b) " ")

Submission status: Runtime Error

Solution code:
a,b,c=input().split()

print(c+" "+a+" " + b " ")

Submission status: Runtime Error

Solution code:
x = input()
y = input()
z = input()
  
print(z + " " + x + " " + y)

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split())
l = []
ans = 1
if(n%m == 0):
  ans=0
else:
  for x in (0,1000000000000000000):
    n = abs(n%m)
    l.append(n)
  l.sort()
  ans = min(m-n,l[0])
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())

def divisior(n):
    a = []
    i = 1
    while (i*i <= n):
        if n%i == 0:
            a.append(i)
            if (i*i == n): continue
            a.append(n//i)
        i += 1

    return a

ans = 0
a = divisior(n)

for x in a:
    if x == 1: continue
    tmp = n
    while (tmp%x == 0): tmp = tmp//x
    if (tmp%x == 1) : ans += 1

b = divisior(n-1)

ans = ans + len(b) -1

print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())

def divisior(n):

    a = []
    i = 1

    while (i*i <= n):
        if n%i == 0:
            a.append(i)
            if (i*i == n): continue
            a.append(int(n/i))
        i += 1

    return a

ans = 0
a = divisior(n)

for x in a:
    if x == 1: continue
    tmp = n
    while (tmp%x == 0): tmp /= x
    if (tmp%x == 1) : ans += 1

b = divisior(n-1)

ans = ans + len(b) -1

print(ans)

Submission status: Runtime Error

Solution code:
X=int(input())
Y=int(input())
Z=int(input())

anotherX=X
X=Y
Y=anotherX
anotherX=X
X=Z
Z=anotherX
print(X,Y,Z)

Submission status: Runtime Error

Solution code:
s= input().split(' ')
s[0]=X
s[1]=Y
s[2]=Z
d=X
a=Y
b=d
d=a
a=c
c=d

print(a, b, c)

Submission status: Runtime Error

Solution code:
def popularity(votes, N, M):
    
    total_votes = sum(votes)
    coef = 1.0 / (4.0 * M)
    limit = coef * total_votes
    
    cnt = 0
    for vote in votes:
        if vote > limit:
            cnt += 1
    
    if cnt >= M:
    	return "Yes"
    
    return "No"
  
N, M = [int (x) for x in input().split()]
votes = [int (x) for x in input().split()]
print(popularity(votes, N, M))

Submission status: Runtime Error

Solution code:
def popularity(votes, N, M):
    
    total_votes = sum(votes)
    coef = 1.0 / (4.0 * M)
    limit = coef * total_votes
    
    cnt = 0
    for vote in votes:
        if vote > limit:
            cnt += 1
        if cnt >= M:
            return "Yes"
    
    return "No"
  
N, M = [int (x) for x in input().split()]
votes = [int (x) for x in input().split()]
print(popularity(votes, N, M))

Submission status: Runtime Error

Solution code:
a,b,c=input().split
print(c,a,b)

Submission status: Runtime Error

Solution code:
n,k,c=[int(x) for x in input().split()]
s=list(input())

L=[]
R=[]

i=0
while i < n:  
    if s[i]=="o":
        L.append(i)
        i+=c
    i+=1

i=0
while i < n:
    if s[n-i-1]=="o":
        R.append(n-i-1)
        i+=c
    i+=1

days=[]
for i in range(k):
    if L[i]==R[i]:
        days.append(L[i])


for i in range(len(days)):
    print(days[i]+1)

Submission status: Runtime Error

Solution code:
n,k,c=[int(x) for x in input().split()]
s=list(input())

L=[]
R=[]

i=0
while i < n:  
    if s[i]=="o":
        L.append(i)
        i+=2
    i+=1

i=0
while i < n:
    if s[n-i-1]=="o":
        R.append(n-i-1)
        i+=2
    i+=1

days=[]
for i in range(k):
    if L[i]==R[i]:
        days.append(L[i])


for i in range(len(days)):
    print(days[i]+1)

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
while n > abs(n - k):
    n = abs(n - k)
print(n)

Submission status: Runtime Error

Solution code:
N, M = map(int,input().split())
A = list(map(int,input().split())) S = sum(A)
cnt = 0
forainA:
if a >= S / (4*M): cnt += 1
ifcnt>=M: print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
a,b,c = map(int, input().split())
print(c,a,b)v

Submission status: Runtime Error

Solution code:
l = map(int,input().split())

print(l[2],l[0],l[1])

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3

a = int(input())
a, b = map(int, input().split())
a = list(str(input()))

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
    a,b,c = raw_input().split(" ")
    a,b = b,a
    a,c = c,a
    stdout(a, b, c)

Submission status: Runtime Error

Solution code:
# Sample Input:
# 4 1
# 5 4 2 1
# total votes = 12
# 1/4M * 12 = 1/4 * 12 = 3, can't select item < 3

first_input = input("").split(" ")
N, M = map(int, first_input)
items = input("")

items = items.split(" ")
total_votes = list(map(float, items))

total_votes = sum(total_votes)

min_N = total_votes * ( 1.0 / (4.0 * M) )

if(N < min_N):
    print("No")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
input_arr = input("").split(" ")
a, b, c = map(str, input_arr)

print(f"{c} {a} {b}")

Submission status: Runtime Error

Solution code:

input_arr = input("").split(" ")
a, b, c = map(str, input_arr)

print(f"{c} {a} {b}")

Submission status: Runtime Error

Solution code:

a = ""
b = ""
c = ""

a = input("")
b = input("")
c = input("")

return [b, c, a]

Submission status: Runtime Error

Solution code:
a = input("")
b = input("")
c = input("")

return [a, b ,c]

Submission status: Runtime Error

Solution code:
# a b c
# b a c
# b c a


function abcSwap(arr):
  arr[0], arr[1] = arr[1], arr[0]
  arr[1], arr[2] = arr[2], arr[1]
  return arr

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split())
a = list(map(int, input().split()))
ans = "Yes"

a.sort(reverse=True)

for i in range(m):
    if a[i] < sum(a)*(1/(4*m)):
        ans = "No"
        break

print(ans)

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse = True)
ans = "Yes"
for i in range(m):
    if a[i] < sum(a)*(1/(4*m)):
        ans = "No"
        break
print(ans)

Submission status: Runtime Error

Solution code:
def resolve():
  a, b, c = map(int, input().split())
 
    temp_a = a
    temp_b = b
    a = temp_b
    b = temp_a
    temp_c = c
    temp_a = a
    c = temp_a
    a = temp_c
    print(a, b, c)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
print(c+" "+b+" "+a)

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
 
    temp_a = a
    temp_b = b
    a = temp_b
    b = temp_a
    temp_c = c
    temp_a = a
    c = temp_a
    a = temp_c
    print(a, b, c)

Submission status: Runtime Error

Solution code:
import numpy as np

def main():
    args1, args2 = input().rstrip().split(' '), input().rstrip().split(' ')
    N, M = int(args1[0]), int(args1[1])
    items = np.array([int(val) for val in args2])
    items = np.sort(items)[::-1]
    items_sum = np.sum(items)
    bottom = items_sum / 4. / M
    
    if(items[M-1] >= bottom):
        print('Yes')
    else:
        print('No')
    
if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
from sys import stdin, stdout
l = list(map(int, stdin.readline().rstrip().split(' ')))
print(l)
f=[]
i=-1
for n in (0,(len(l)-1)):
    f[n] = l[i]
    i = i+1
print(l)

Submission status: Runtime Error

Solution code:
import sys

l = []

for line in sys.stdin:
  new_list = [int(elem) for elem in line.split()]
  l.append(new_list)
f=[]
i=1
for x in range(0,len(l)):
  
  f[x] = l[-i]
  i++
print(f)

Submission status: Runtime Error

Solution code:
import sys
args = sys.argv

a, b, c = int(args[1]), int(args[2]), int(args[3])
print('{} {} {}'.format(c, a, b))

Submission status: Runtime Error

Solution code:
A=int(X)
B=int(Y)
C=int(Z)
X>=1
Y,Z<=100
A=D
A=B
B=D
C=E
A=C
C=A
print("A"=A, "B"=B, "C"=C)

Submission status: Runtime Error

Solution code:
n,k = map(int,input().split())
print(min(n%k,abs(k-n%k)))

Submission status: Runtime Error

Solution code:
import math
n,k = map(int,input().split())
print(min(n%k,k-n%k))

Submission status: Runtime Error

Solution code:
import math
n,k = map(int,input().split())
x = n//k
if(n<k):
    x = k//n
    print(min(abs(k*x-n),abs(k*(x+1)-n)))
else:
    print(min(abs(k*x-n),abs(k*(x+1)-n)))

Submission status: Runtime Error

Solution code:
import math
n,k = map(int,input().split())
x = math.ceil(n/k)
if(n<k):
    x = math.ceil(n/k)
    print(min(n,abs(k*x-n)))
else:
    print(abs(k*x-n))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
print(c, a, b)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
print(c, b, a)

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input())

print(a,b,c)

Submission status: Runtime Error

Solution code:
x , y, z = map(int,input().split())
print(z + ' ' + x + ' ' + y)

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split(" "))
print("{} {} {}".format(c, a, b)

Submission status: Runtime Error

Solution code:
a, b, c = input().split(" ")
print("{} {} {}".format(c, a, b)

Submission status: Runtime Error

Solution code:
a, b, c = input().sprit(" ")
temp = a
a = b
b = temp
temp = a
a = c
c = temp
print("{} {} {}".format(a, b, c)

Submission status: Runtime Error

Solution code:
import sys
#import clipboard

#if sys.platform == 'ios':
#	input = clipboard.get()
#else: 
	input = input()

arr = input.split()

X, Y, Z = arr
print(Z, X, Y)

Submission status: Runtime Error

Solution code:
import sys
import clipboard

if sys.platform == 'ios':
	input = clipboard.get()
else:
	input = input()

arr = input.split()

X, Y, Z = arr
print(Z, X, Y)

Submission status: Runtime Error

Solution code:
n = int(input())
num_list = [list(map(int, input().split())) for i in range(n)]

num_list[1].sort(reverse=True)
v = 1 / (4 * num_list[0][1]) * sum(num_list[1])

c = 1

for i in range(num_list[0][1]):
  if num_list[1][i] < v:
    c = 0
    
if c==1:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split()))
a[0], a[1] = a[1], a[0]
a[0], a[2] = a[2], a[0]
 
print(a[0]+" "+a[1]+" "+a[2])

Submission status: Runtime Error

Solution code:
l = input().split()
 
l[0], l[1] = l[1], 1[0]
l[0], l[2] = l[2], 1[0]
 
print(l[0]+" "+l[1]+" "+l[2])

Submission status: Runtime Error

Solution code:
t = list(map(int,input().split()))
a = list(map(int,input().split()))
s = sum(a)
count = 0

for i in range(t[0]):
    if a[i] >= s/(4 * t[1]):
        count += 1

if count >= t[1]:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
l = input().split()

l[0], l[1] = l[1], 1[0]
l[0], l[2] = l[2], 1[0]

print(l)

Submission status: Runtime Error

Solution code:
n = int(input())
m = int(input())
a = list(map(int,input().split()))
s = sum(a)
count = 0

for i in range(len(a)):
    if a[i] >= s/(4*m):
        count += 1

if count >= m:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
from sys import stdin

a = stdin.readline().rstrip()
l = list(map(int, a.split()))

l[0], l[1] = l[1], 1[0]
l[0], l[2] = l[2], 1[0]

print(l)

Submission status: Runtime Error

Solution code:
n = int(input())
m = int(input())
a = list(map(int,input().split()))
sum = sum(a)
count = 0

for i in range(len(a)):
    if a[i] >= sum/(4*m):
        count += 1

if count >= m:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
n,m = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)

hantei = sum(a) / (4 * m)
if a[m-1] > hantei:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
#複数の入力
input_list = input().split( )
input_list = input_list.sort()
print(input_list[0],input_list[1],input_list[2])

Submission status: Runtime Error

Solution code:
#複数の入力
input_list = input().split( )
input_list = input_list.sort
print(input_list[0],input_list[1],input_list[2])

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().sprit())
print('{} {} {}'.format(c, a, b))

Submission status: Runtime Error

Solution code:
c, a, b= input().split()
Print(a, b, c)

Submission status: Runtime Error

Solution code:
n,k,c = map(int,raw_input().split())
s = raw_input()
most = [0]*(n+1)
i = n
days = 0
while i > 0:
    if s[i-1] == 'o':
        days += 1
        for j in xrange(min(max(1,c),i-1)):
            #print days
            most[i-j-1] = days
        i -= (c+1)
    else:
        i -= 1
    if i<n-1:
        most[i] = most[i+1]

remain = k
i = 1
while i<=n:
    if s[i-1] == 'o':
        if most[i] < remain:
            print i
        remain -= 1
        i += c+1
    else:
        i += 1

Submission status: Runtime Error

Solution code:
def main():
	a,b,c = [int(x) for x in input().split()]
	a, b = b, a
	a, c = c, a
    print(a, b, c)

main()

Submission status: Runtime Error

Solution code:
def main():
	a,b,c = [int(x) for x in input().split()]
    a, b = b, a
    a, c = c, a
  	print(a, b, c)

main()

Submission status: Runtime Error

Solution code:
x, y, z = int(input().split())
print(z, x, y)

Submission status: Runtime Error

Solution code:
a, b, c = intpu().split()
print(c, a, b)