s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time int64 0 100 | memory stringlengths 4 6 | code_size int64 15 14.7k | code stringlengths 15 14.7k | problem_id stringlengths 6 6 | problem_description stringlengths 358 9.83k | input stringlengths 2 4.87k | output stringclasses 807
values | __index_level_0__ int64 1.1k 1.22M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s208339045 | p00353 | u374434600 | 1586697953 | Python | Python3 | py | Accepted | 20 | 5600 | 190 | import sys
m,f,b=map(int,input().split())
sum1=m+f
if(sum1>=b):
if(m>=b):
rental=0
print(rental)
else:
rental=b-m
print(rental)
else:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,734 |
s537181762 | p00353 | u585138240 | 1585127990 | Python | Python3 | py | Accepted | 20 | 5596 | 118 | i = input()
m,f,b = map(int,i.split())
if m >= b:
print(0)
elif (m+f) < b:
print('NA')
else:
print(b - m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,735 |
s939386775 | p00353 | u934460477 | 1579999749 | Python | Python3 | py | Accepted | 20 | 5596 | 103 | m,f,b=map(int,input().split())
if b<=m:
print(0)
elif b<=m+f:
print(b-m)
else:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,736 |
s487122521 | p00353 | u829695570 | 1576157057 | Python | Python3 | py | Accepted | 20 | 5596 | 108 | m,f,b=map(int,input().split())
if m >= b:
print(0)
elif m+f >= b:
print(b-m)
else:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,737 |
s231420608 | p00353 | u153447291 | 1573812828 | Python | Python3 | py | Accepted | 20 | 5596 | 108 | m,f,b = map(int,input().split())
if m+f < b:
print("NA")
elif m >= b:
print(0)
else:
print(b-m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,738 |
s564444306 | p00353 | u350155409 | 1573305205 | Python | Python3 | py | Accepted | 20 | 5604 | 128 | m,f,b = [ int(s) for s in input().split() ]
x = b-m
if m >= b:
print(0)
elif f >= x:
print(x)
else:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,739 |
s558677971 | p00353 | u760067899 | 1569070899 | Python | Python3 | py | Accepted | 20 | 5596 | 134 | m, f, b = input().split()
m = int(m)
f = int(f)
b = int(b)
if m >= b:
print(0)
elif m + f >= b:
print(b - m)
else:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,740 |
s117347756 | p00353 | u693650873 | 1566881523 | Python | Python3 | py | Accepted | 20 | 5596 | 104 | m,f,b=map(int,input().split())
if m+f < b:
print("NA")
elif m>=b:
print(0)
else:
print(b-m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,741 |
s976785972 | p00353 | u615613865 | 1566871170 | Python | Python3 | py | Accepted | 20 | 5596 | 115 | m,f,b=map(int,input().split())
x=b-m
if b<=m:
print(0)
elif f>=x and 0<=x:
print(x)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,742 |
s445004396 | p00353 | u851950016 | 1566869994 | Python | Python3 | py | Accepted | 20 | 5596 | 102 | m,f,b=map(int,input().split())
if m>=b:
print(0)
elif m+f<b:
print('NA')
else:
print(b-m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,743 |
s763539721 | p00353 | u250040203 | 1564916392 | Python | Python3 | py | Accepted | 20 | 5596 | 112 | m,f,b=map(int,input().split())
if m>=b:
print(0)
elif m+f>=b:
g=b-m
print(g)
else :
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,744 |
s966618152 | p00353 | u821561321 | 1564845956 | Python | Python3 | py | Accepted | 20 | 5596 | 103 | a,b,c=map(int,input().split())
if c <= a:
print("0")
elif c <= a+b:
print(c-a)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,745 |
s408295283 | p00353 | u120055135 | 1564242794 | Python | Python3 | py | Accepted | 20 | 5596 | 125 |
m, f, b = map(int, input().split())
a = b - m
if a <= 0:
print(0)
elif a <= f:
print(a)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,746 |
s080473468 | p00353 | u312033355 | 1563168296 | Python | Python3 | py | Accepted | 20 | 5596 | 96 | m,f,b=map(int,input().split())
if m+f<b:
print("NA")
elif m>=b:
print(0)
else:
print(b-m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,747 |
s846122388 | p00353 | u480501638 | 1562565550 | Python | Python3 | py | Accepted | 30 | 5596 | 120 | m, f, b = map(int, input().split())
if m >= b:
print("0")
elif m < b and m + f >= b:
print(b-m)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,748 |
s287811414 | p00353 | u525395303 | 1562565479 | Python | Python3 | py | Accepted | 20 | 5596 | 118 | a,b,c, = map(int, input().split())
if a>= c:
print(0)
else:
d = c - a
if d <= b:
print(d)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,749 |
s806550873 | p00353 | u939401108 | 1562565441 | Python | Python3 | py | Accepted | 20 | 5596 | 120 | m, f, b = map(int, input().split())
if m >= b:
print("0")
elif m < b and m + f >= b:
print(b-m)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,750 |
s331470743 | p00353 | u433250944 | 1562564151 | Python | Python3 | py | Accepted | 20 | 5596 | 122 | m,f,b = map(int,input().split())
if m - b > 0:
print(0)
elif m + f >= b:
print(b - m)
elif m + f < b:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,751 |
s657692051 | p00353 | u593976237 | 1562490361 | Python | Python3 | py | Accepted | 20 | 5592 | 223 | data = input()
my_money, a_money, price = map(int, data.split())
if my_money >= price:
print(0)
elif my_money < price:
if (my_money + a_money) >= price:
print(price - my_money)
else:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,752 |
s121523799 | p00353 | u260980560 | 1561906488 | Python | Python3 | py | Accepted | 20 | 5596 | 112 | m, f, b = map(int, input().split())
if b <= m:
print(0)
elif b <= m+f:
print(b-m)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,753 |
s830176478 | p00353 | u529337794 | 1561897594 | Python | Python3 | py | Accepted | 20 | 5596 | 127 | m, f, b = map(int, input().split())
if b - m > 0:
if f >= b - m:
print(b - m)
else:
print("NA")
else:
print("0")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,754 |
s891538598 | p00353 | u175177614 | 1561356053 | Python | Python3 | py | Accepted | 20 | 5596 | 105 | m,f,b=map(int,input().split())
if m-b>0:
print(0)
elif m+f>=b:
print(b-m)
elif m+f<b:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,755 |
s466683859 | p00353 | u363699501 | 1561355772 | Python | Python3 | py | Accepted | 20 | 5596 | 115 | m,f,b = map(int, input().split())
if b-m>0 :
if b-m<=f :
print(b-m)
else:
print('NA')
else:
print(0)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,756 |
s040468151 | p00353 | u607723579 | 1561354965 | Python | Python3 | py | Accepted | 20 | 5596 | 131 | m, f, b = map(int,input().split())
if m >= b:
print(0)
if m < b:
a = b-m
if b-m <= f:
print(a)
else:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,757 |
s693446220 | p00353 | u681232780 | 1561354898 | Python | Python3 | py | Accepted | 20 | 5596 | 122 | m,f,b = map(int,input().split())
a = b-m
if f>= a and a > 0 :
print(a)
elif a<0 :
print(0)
else :
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,758 |
s129361311 | p00353 | u517275798 | 1561354819 | Python | Python3 | py | Accepted | 20 | 5596 | 108 | m,f,b = map(int, input(). split())
if b <= m:
print('0')
elif b-m <= f:
print(b-m)
else:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,759 |
s846113211 | p00353 | u818126736 | 1561354682 | Python | Python3 | py | Accepted | 20 | 5596 | 128 | m,f, b = map(int, input().split())
if b - m > 0:
if f >= (b - m):
print(b - m)
else:
print("NA")
else:
print("0")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,760 |
s232281275 | p00353 | u897466764 | 1561354601 | Python | Python3 | py | Accepted | 20 | 5596 | 131 | m, f, b = map(int, input().split())
x = b - m
if(x <= 0):
print("0")
elif(x <= f):
print(x)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,761 |
s273799191 | p00353 | u003684951 | 1561354420 | Python | Python3 | py | Accepted | 20 | 5596 | 118 | m, f, b = map(int, input().split())
if m + f < b:
print("NA")
elif m >= b:
print(0)
else:
print(b - m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,762 |
s620823913 | p00353 | u725843728 | 1561354400 | Python | Python3 | py | Accepted | 20 | 5596 | 101 | m,f,b=map(int,input().split())
if m>b:
print(0)
elif b-m<=f:
print(b-m)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,763 |
s668345649 | p00353 | u239237743 | 1561353889 | Python | Python3 | py | Accepted | 20 | 5596 | 130 | m, f, b = map(int,input().split())
if m >= b:
print(0)
if m < b:
a = b-m
if b-m <= f:
print(a)
else:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,764 |
s483627528 | p00353 | u487330611 | 1561353728 | Python | Python3 | py | Accepted | 20 | 5596 | 124 | a,b,c = map(int, input().split())
if a >= c:
print(0)
else:
d = c - a
if d <= b:
print(d)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,765 |
s457604927 | p00353 | u090921599 | 1561353535 | Python | Python3 | py | Accepted | 20 | 5596 | 139 | m,f,b = map(int, input().split())
if m > b:
print(0)
else:
d = b - m
if d <= f:
print(d)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,766 |
s598782280 | p00353 | u427219397 | 1561353284 | Python | Python3 | py | Accepted | 20 | 5596 | 141 | a,b,c = map(int, input().split())
if a >= c:
print(0)
else:
d = c - a
if d <= b:
print(d)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,767 |
s941242867 | p00353 | u678843586 | 1561353184 | Python | Python3 | py | Accepted | 20 | 5596 | 117 | m, f, b = map(int, input().split())
if m + f < b:
print("NA")
elif m >= b:
print(0)
else:
print(b - m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,768 |
s366164354 | p00353 | u591403647 | 1561353037 | Python | Python3 | py | Accepted | 20 | 5596 | 109 | m,f,b=map(int,input().split())
if(m+f<b):
print("NA")
else:
if(m>b):
print(0)
else:
print(b-m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,769 |
s961435792 | p00353 | u467711590 | 1561352984 | Python | Python3 | py | Accepted | 20 | 5596 | 126 | a, b, c = map(int, input().split())
if a >= c:
print(0)
else:
d = c - a
if b >= d:
print(d)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,770 |
s866776758 | p00353 | u313600138 | 1561352758 | Python | Python3 | py | Accepted | 20 | 5592 | 100 | m,f,b =map(int, input().split())
if m+f<b:
print("NA")
elif m>=b:
print("0")
else:
print(b-m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,771 |
s979864088 | p00353 | u847360154 | 1561352684 | Python | Python3 | py | Accepted | 20 | 5596 | 100 | a,b,c=map(int,input().split())
if c <= a:
print("0")
elif c <= a+b:
print(c-a)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,772 |
s796657222 | p00353 | u499561491 | 1561352603 | Python | Python3 | py | Accepted | 20 | 5596 | 124 | a,b,c = map(int, input().split())
if a >= c:
print(0)
else:
d = c - a
if d <= b:
print(d)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,773 |
s906374981 | p00353 | u064125291 | 1561352589 | Python | Python3 | py | Accepted | 20 | 5596 | 100 | a,b,c=map(int,input().split())
if c <= a:
print("0")
elif c <= a+b:
print(c-a)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,774 |
s352760262 | p00353 | u351754662 | 1561352436 | Python | Python3 | py | Accepted | 20 | 5596 | 100 | a,b,c=map(int,input().split())
if c <= a:
print("0")
elif c <= a+b:
print(c-a)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,775 |
s939864477 | p00353 | u264450287 | 1561352408 | Python | Python3 | py | Accepted | 20 | 5596 | 99 | m,f,b=map(int,input().split())
if m>=b:
print(0)
elif (m+f)>=b:
print(b-m)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,776 |
s927809946 | p00353 | u814278309 | 1561352068 | Python | Python3 | py | Accepted | 20 | 5596 | 96 | m,a,b=map(int,input().split())
if m>=b:
print(0)
elif m+a<b:
print("NA")
else:
print(b-m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,777 |
s057980511 | p00353 | u428848588 | 1561352047 | Python | Python3 | py | Accepted | 20 | 5596 | 124 | a,b,c, = map(int, input().split())
if a>= c:
print(0)
else:
d = c - a
if d <= b:
print(d)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,778 |
s673536216 | p00353 | u015712946 | 1561351867 | Python | Python3 | py | Accepted | 20 | 5596 | 141 | a,b,c = map(int, input().split())
if a >= c:
print(0)
else:
d = c - a
if d <= b:
print(d)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,779 |
s249608101 | p00353 | u506537276 | 1561351781 | Python | Python3 | py | Accepted | 20 | 5592 | 128 | m,f, b = map(int, input().split())
if b - m > 0:
if f >= (b - m):
print(b - m)
else:
print("NA")
else:
print("0")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,780 |
s782462291 | p00353 | u037441960 | 1561351779 | Python | Python3 | py | Accepted | 20 | 5596 | 114 | m, f, b = map(int, input().split())
if(m + f < b) :
print("NA")
elif(m >= b) :
print(0)
else :
print(b - m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,781 |
s098293875 | p00353 | u800408401 | 1561351757 | Python | Python3 | py | Accepted | 20 | 5596 | 119 | m, f, b=map(int,input().split(" "))
if m>b:
print("0")
else:
if m+f<b:
print("NA")
else:
print(b-m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,782 |
s081873972 | p00353 | u786891610 | 1561351695 | Python | Python3 | py | Accepted | 20 | 5596 | 123 | m, f, b = map(int,input().split())
if m >= b:
print('0')
if m < b <= m + f:
print(b - m)
if m + f < b:
print('NA')
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,783 |
s157256136 | p00353 | u043254318 | 1558665921 | Python | Python3 | py | Accepted | 20 | 5604 | 134 | m,f,b = [int(i) for i in input().split()]
ans = b - m
if ans <= 0:
print(0)
elif ans <= f:
print(ans)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,784 |
s551035706 | p00353 | u990228206 | 1550650494 | Python | Python3 | py | Accepted | 30 | 5596 | 103 | m,f,b=map(int,input().split())
if m+f<b:
print('NA')
elif m>b:
print('0')
else:
print(b-m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,785 |
s372297122 | p00353 | u435226340 | 1546922189 | Python | Python3 | py | Accepted | 20 | 5596 | 117 | m, f, b = map(int, input().split())
if m + f < b:
print("NA")
elif m >= b:
print(0)
else:
print(b - m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,786 |
s151456316 | p00353 | u717526540 | 1544146825 | Python | Python3 | py | Accepted | 20 | 5596 | 116 | m, f, b = map(int, input().split())
if m + f < b:
print("NA")
elif m >= b:
print(0)
else:
print(b - m)
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,787 |
s682915829 | p00353 | u689047545 | 1543282563 | Python | Python3 | py | Accepted | 20 | 5596 | 114 | m, f, b = map(int, input().split())
if b <= m:
print(0)
elif b <= m + f:
print(b-m)
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,788 |
s158398963 | p00353 | u623996423 | 1541483103 | Python | Python3 | py | Accepted | 20 | 5584 | 80 | m, f, b = list(map(int, input().split()))
print('NA' if m+f<b else max(0, b-m))
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,789 |
s401016446 | p00353 | u631759611 | 1536852358 | Python | Python3 | py | Accepted | 20 | 5588 | 90 | m,f,b = map(int,input().split())
if m+f >= b:
print(max(0,b-m))
else:
print("NA")
| p00353 | <H1>Shopping</H1>
<p>
You are now in a bookshop with your friend Alice to buy a book, "The Winning Strategy for the Programming Koshien Contest,” just released today. As you definitely want to buy it, you are planning to borrow some money from Alice in case the amount you have falls short of the price. If the amount y... | 1000 3000 3000
| 2000
| 18,790 |
s983693677 | p00354 | u843508808 | 1534743364 | Python | Python3 | py | Accepted | 20 | 5592 | 89 | x = int(input())
l = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
print(l[(x-4)%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,791 |
s948499044 | p00354 | u990228206 | 1551433958 | Python | Python3 | py | Accepted | 20 | 5588 | 79 | ans=["thu","fri","sat","sun","mon","tue","wed"]
i=int(input())
print(ans[i%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,792 |
s241453098 | p00354 | u814278309 | 1559224278 | Python | Python3 | py | Accepted | 20 | 5588 | 81 | week=["thu","fri","sat","sun","mon","tue","wed"]
n=int(input())
print(week[n%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,793 |
s130549340 | p00354 | u231562319 | 1506979462 | Python | Python3 | py | Accepted | 20 | 7772 | 145 | def main():
w = ['fri','sat','sun','mon','tue','wed','thu']
x = int(input()) - 1
print(w[x%7])
if __name__ == '__main__':
main() | p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,794 |
s536065570 | p00354 | u116766943 | 1507124901 | Python | Python3 | py | Accepted | 60 | 7696 | 66 | print(["thu","fri","sat","sun","mon","tue","wed"][int(input())%7]) | p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,795 |
s222622522 | p00354 | u546285759 | 1507273532 | Python | Python3 | py | Accepted | 60 | 8228 | 203 | from datetime import date
days = {i: d for i, d in enumerate(["mon", "tue", "wed", "thu", "fri", "sat", "sun"])}
day = int(input())
result = date(2017, 9, day)
index = result.weekday()
print(days[index]) | p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,796 |
s265630758 | p00354 | u546285759 | 1508992481 | Python | Python3 | py | Accepted | 20 | 7700 | 103 | d = ["fri", "sat", "sun", "mon", "tue", "wed", "thu"]
d = [None] + d * 4 + d[:2]
print(d[int(input())]) | p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,797 |
s801317084 | p00354 | u737311644 | 1516351514 | Python | Python3 | py | Accepted | 20 | 5592 | 402 | a=int(input())
if a==1 or a==8 or a==15 or a==22 or a==29:
print("fri")
if a==2 or a==9 or a==16 or a==23 or a==30:
print("sat")
if a==3 or a==10 or a==17 or a==24:
print("sun")
if a==4 or a==11 or a==18 or a==25:
print("mon")
if a==5 or a==12 or a==19 or a==26:
print("tue")
if a==6 or a==13 or a==2... | p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,798 |
s346440164 | p00354 | u737311644 | 1516351738 | Python | Python3 | py | Accepted | 20 | 5592 | 211 | a=int(input())
if a%7==1:
print("fri")
if a%7==2:
print("sat")
if a%7==3:
print("sun")
if a%7==4:
print("mon")
if a%7==5:
print("tue")
if a%7==6:
print("wed")
if a%7==0:
print("thu")
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,799 |
s417542639 | p00354 | u781622789 | 1523975484 | Python | Python3 | py | Accepted | 30 | 5596 | 99 | a = int(input())
week = {0:"thu",1:"fri",2:"sat",3:"sun",4:"mon",5:"tue",6:"wed"}
print(week[a%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,800 |
s488170422 | p00354 | u480716860 | 1525010486 | Python | Python3 | py | Accepted | 20 | 5592 | 260 | X = int(input())
if(X % 7 == 0):
print("thu")
elif(X % 7 == 1):
print("fri")
elif(X % 7 == 2):
print("sat")
elif(X % 7 == 3):
print("sun")
elif(X % 7 == 4):
print("mon")
elif(X % 7 == 5):
print("tue")
elif(X % 7 == 6):
print("wed")
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,801 |
s640985490 | p00354 | u724548524 | 1525541354 | Python | Python3 | py | Accepted | 20 | 5588 | 75 | print(("thu", "fri", "sat", "sun", "mon", "tue", "wed")[int(input()) % 7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,802 |
s233205612 | p00354 | u777277984 | 1528193740 | Python | Python3 | py | Accepted | 20 | 5592 | 94 | week = ["sat", "sun", "mon", "tue", "wed", "thu", "fri"]
print(week[(int(input()) - 9) % 7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,803 |
s701952575 | p00354 | u568446716 | 1529170597 | Python | Python3 | py | Accepted | 20 | 5592 | 260 | X = int(input())
temp = X % 7
if temp == 0:
print("thu")
elif temp == 1:
print("fri")
elif temp == 2:
print("sat")
elif temp == 3:
print("sun")
elif temp == 4:
print("mon")
elif temp == 5:
print("tue")
elif temp == 6:
print("wed")
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,804 |
s837673775 | p00354 | u352394527 | 1529936717 | Python | Python3 | py | Accepted | 30 | 6036 | 139 | import datetime
dic = ["mon","tue","wed","thu","fri","sat","sun"]
now = datetime.datetime(2017, 9, int(input()))
print(dic[now.weekday()])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,805 |
s129104353 | p00354 | u240091169 | 1594864760 | Python | Python3 | py | Accepted | 20 | 5588 | 95 | X = int(input())
week = ['thu', 'fri', 'sat', 'sun', 'mon', 'tue','wed']
print(week[X%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,806 |
s634082731 | p00354 | u548184870 | 1594280559 | Python | Python3 | py | Accepted | 20 | 5592 | 213 | X = int(input())
X = (X-9)%7
if X<0: X = X+7
y = ''
if X==0:
y = 'sat'
elif X==1:
y = 'sun'
elif X==2:
y = 'mon'
elif X==3:
y = 'tue'
elif X==4:
y = 'wed'
elif X==5:
y = 'thu'
elif X==6:
y = 'fri'
print(y)
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,807 |
s525485318 | p00354 | u286298310 | 1593697186 | Python | Python3 | py | Accepted | 40 | 7040 | 116 |
import datetime
import locale
d = int(input())
dt = datetime.datetime(2017,9,d)
print(dt.strftime("%a").lower())
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,808 |
s829159776 | p00354 | u512192552 | 1589555327 | Python | Python3 | py | Accepted | 20 | 5596 | 251 | # coding: utf-8
# Your code here!
X=int(input())
if X%7==1:
print('fri')
elif X%7==2:
print('sat')
elif X%7==3:
print('sun')
elif X%7==4:
print('mon')
elif X%7==5:
print('tue')
elif X%7==6:
print('wed')
else:
print('thu')
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,809 |
s835643707 | p00354 | u842461513 | 1588938635 | Python | Python3 | py | Accepted | 20 | 5592 | 635 | num = int(input()) #標準入力
if num % 7 == 0:print("thu") #numを7で割った余りが0なら"thu"を出力する
if num % 7 == 1:print("fri") #numを7で割った余りが1なら"fri"を出力する
if num % 7 == 2:print("sat") #numを7で割った余りが2なら"sat"を出力する
if num % 7 == 3:print("sun") #numを7で割った余りが3なら"sun"を出力する
if num % 7 == 4:print("mon") #numを7で割った余りが4なら"mon"を出力する
if num % 7 == 5... | p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,810 |
s536748964 | p00354 | u632594605 | 1588722266 | Python | Python3 | py | Accepted | 20 | 5588 | 67 | print(["thu","fri","sat","sun","mon","tue","wed"][int(input())%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,811 |
s197721511 | p00354 | u056829778 | 1587971694 | Python | Python3 | py | Accepted | 20 | 5592 | 86 | x = int(input())
a = ['mon','tue','wed','thu','fri','sat','sun']
print(a[(x+3) % 7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,812 |
s314626271 | p00354 | u829695570 | 1576157475 | Python | Python3 | py | Accepted | 30 | 5588 | 71 | w=["thu","fri","sat","sun","mon","tue","wed"]
print(w[int(input())%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,813 |
s874117101 | p00354 | u153447291 | 1573812967 | Python | Python3 | py | Accepted | 20 | 5588 | 85 | days = ["thu","fri","sat","sun","mon","tue","wed"]
a = int(input())
print(days[a%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,814 |
s416454421 | p00354 | u108130680 | 1564929790 | Python | Python3 | py | Accepted | 20 | 6036 | 139 | import datetime
dic = ["mon","tue","wed","thu","fri","sat","sun"]
now = datetime.datetime(2017, 9, int(input()))
print(dic[now.weekday()])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,815 |
s841669970 | p00354 | u120055135 | 1564243221 | Python | Python3 | py | Accepted | 20 | 5592 | 240 | X = int(input())
if X%7 == 4:
print("mon")
elif X%7 == 5:
print("tue")
elif X%7 == 6:
print("wed")
elif X%7 == 0:
print("thu")
elif X%7 == 1:
print("fri")
elif X%7 == 2:
print("sat")
elif X%7 == 3:
print("sun")
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,816 |
s639120309 | p00354 | u090921599 | 1563707391 | Python | Python3 | py | Accepted | 20 | 5592 | 101 | day = ["fri", "sat", "sun", "mon", "tue", "wed", "thu"]
x = int(input())
print(day[abs(x - 1) % 7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,817 |
s798091251 | p00354 | u939401108 | 1562694662 | Python | Python3 | py | Accepted | 20 | 5588 | 84 | D =["thu", "fri", "sat", "sun", "mon", "tue", "wed"]
x = int(input())
print(D[x%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,818 |
s874614669 | p00354 | u480501638 | 1562563121 | Python | Python3 | py | Accepted | 20 | 5596 | 149 | def main():
w = ['fri','sat','sun','mon','tue','wed','thu']
x = int(input()) - 1
print(w[x%7])
if __name__ == '__main__':
main()
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,819 |
s361880093 | p00354 | u525395303 | 1562563069 | Python | Python3 | py | Accepted | 20 | 5596 | 148 | def main():
w = ['fri','sat','sun','mon','tue','wed','thu']
x = int(input()) - 1
print(w[x%7])
if __name__ == '__main__':
main()
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,820 |
s287793401 | p00354 | u607723579 | 1561957464 | Python | Python3 | py | Accepted | 20 | 5608 | 579 | X = int(input())
s = [0,1,2,3]
if (X == 9-7-1):
print('fri')
elif (X == 9-7):
print('sat')
elif (X == 9-7+1):
print('sun')
elif (X == 9-7+2):
print('mon')
elif (X == 9-7+3):
print('tue')
elif (X == 9-7+4):
print('wed')
elif (X == 9-7+5):
print('thu')
elif (X == 9-7+6):
print('fri')
for i in s:
if(X == 9+7*i... | p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,821 |
s879398590 | p00354 | u260980560 | 1561906603 | Python | Python3 | py | Accepted | 20 | 5592 | 93 | youbi = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
print(youbi[(int(input())-4) % 7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,822 |
s436578130 | p00354 | u537067968 | 1561597442 | Python | Python3 | py | Accepted | 20 | 5600 | 190 | day = ["sat","sun","mon","tue","wed","thu","fri"]
dayf = ["thu","fri","sat","sun","mon","tue","wed"]
x = int(input())
if x < 9:
print(dayf[x%7])
else:
print(day[abs(x-9)%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,823 |
s993382378 | p00354 | u363699501 | 1561355754 | Python | Python3 | py | Accepted | 10 | 5592 | 221 | X = int(input())
if X%7==2 :
print('sat')
elif X%7==3 :
print('sun')
elif X%7==4 :
print('mon')
elif X%7==5 :
print('tue')
elif X%7==6 :
print('wed')
elif X%7==0 :
print('thu')
elif X%7==1 :
print('fri')
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,824 |
s935132608 | p00354 | u529337794 | 1561355686 | Python | Python3 | py | Accepted | 20 | 5588 | 81 | n = ("thu","fri","sat","sun","mon","tue","wed")
X = int(input())
print(n[X%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,825 |
s205842666 | p00354 | u997476941 | 1561355626 | Python | Python3 | py | Accepted | 20 | 5596 | 147 | def main():
w = ['fri','sat','sun','mon','tue','wed','thu']
x = int(input()) - 1
print(w[x%7])
if __name__ == '__main__':
main()
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,826 |
s125107307 | p00354 | u088766660 | 1561355576 | Python | Python3 | py | Accepted | 20 | 6036 | 162 | from datetime import date
weekdays = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
x = int(input())
idx = date(2017, 9, x).weekday()
print(weekdays[idx])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,827 |
s110360623 | p00354 | u495152850 | 1561355441 | Python | Python3 | py | Accepted | 20 | 5592 | 92 | day = ["fri","sat","sun","mon","tue","wed","thu"]
x = int(input())
print(day[abs(x-1) % 7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,828 |
s064682548 | p00354 | u804558166 | 1561355318 | Python | Python3 | py | Accepted | 20 | 5588 | 85 | w = ("thu", "fri", "sat", "sun", "mon", "tue", "wed")
n = int(input())
print(w[n%7])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,829 |
s075000153 | p00354 | u175177614 | 1561354870 | Python | Python3 | py | Accepted | 20 | 5592 | 235 | x=int(input())
if x%7==2 :
print('sat')
elif x%7==3 :
print('sun')
elif x%7==4 :
print('mon')
elif x%7==5 :
print('tue')
elif x%7==6 :
print('wed')
elif x%7==0 :
print('thu')
elif x%7==1 :
print('fri')
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,830 |
s260951090 | p00354 | u786891610 | 1561354649 | Python | Python3 | py | Accepted | 30 | 5592 | 228 | X = int(input())
if X % 7 == 0:
print('thu')
if X % 7 == 1:
print('fri')
if X % 7 == 2:
print('sat')
if X % 7 == 3:
print('sun')
if X % 7 == 4:
print('mon')
if X % 7 == 5:
print('tue')
if X % 7 == 6:
print('wed')
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,831 |
s134211649 | p00354 | u467711590 | 1561354614 | Python | Python3 | py | Accepted | 20 | 5588 | 90 | W = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] * 10
n = int(input())
print(W[n+3])
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,832 |
s712930186 | p00354 | u725843728 | 1561353753 | Python | Python3 | py | Accepted | 20 | 5592 | 217 | x=int(input())
if x%7==0:
print("thu");
elif x%7==1:
print("fri");
elif x%7==2:
print("sat");
elif x%7==3:
print("sun");
elif x%7==4:
print("mon");
elif x%7==5:
print("tue");
else :
print("wed");
| p00354 |
<!--<H1>X-th day of September</H1>-->
<h1>Day of Week</h1>
<p>
The 9th day of September 2017 is Saturday. Then, what day of the week is the X-th of September 2017?
</p>
<p>
Given a day in September 2017, write a program to report what day of the week it is.
</p>
<h2>Input</h2>
<p>
The input is given in t... | 1
| fri
| 18,833 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.