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
stringlengths
1
5
memory
stringlengths
1
7
code_size
stringlengths
1
6
code
stringlengths
1
539k
s669001874
p03795
u593934357
1581480018
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
43
n = int(input()) print(800*x - (n//15)*200)
s745106345
p03795
u434872492
1581468518
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
N=int(input()) x=N*800 if N>=15: y=200*(N//15) ans=x-y print(ans)
s010835206
p03795
u434872492
1581468263
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
N=int(input()) x=N*800 if N>=15: y=200*(N%15) ans=x-y print(ans)
s169629526
p03795
u609814378
1581180860
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
from math import factorial N = int(input()) N2=math.factorial(N) print((N2)%(10 ** 9 + 7))
s032046025
p03795
u779308281
1580921624
Python
Python (3.4.3)
py
Runtime Error
17
2940
130
import math def main(n): x = 800 * n if n >= 15: y = 200 * math.floor(n / 15) print(x - y) main(int(input()))
s442856333
p03795
u779308281
1580921549
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
def Main(n): x = 800 * n if n >= 15: y = 200 * math.floor(n / 15) print(x - y) Main(int(input()))
s034049459
p03795
u779308281
1580921402
Python
Python (3.4.3)
py
Runtime Error
17
2940
125
n = int(input()) def main(n): x = 800 * n if n >= 15: y = 200 * math.floor(n / 15) print(x - y) main(n)
s833577324
p03795
u816631826
1579328006
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
n = int(input()) k = n//15 cost = n*800 return = k*200 print(cost - return)
s489245843
p03795
u807084817
1578183333
Python
PyPy3 (2.4.0)
py
Runtime Error
234
51052
263
import sys from io import StringIO import unittest import math def resolve(): s,c= map(int,input().split()) if s>=c/2: print(str(math.floor(c/2))) else: zanc = c - (s * 2) print(str(s + math.floor(zanc/4))) resolve()
s324268881
p03795
u153419200
1577392963
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
a=input() print(800*a-200*(a//15))
s897386471
p03795
u695079172
1577166505
Python
Python (3.4.3)
py
Runtime Error
17
2940
197
食べた回数=int(input()) 値段=800 ボーナス=200 支払うお金=食べた回数 * 値段 もらうお金=食べた回数//15 * ボーナス print(支払うお金-もらうお金)
s934303392
p03795
u695079172
1577166433
Python
Python (3.4.3)
py
Runtime Error
17
2940
195
食べた回数= int(input()) 値段=800 ボーナス=200 支払うお金= 食べた回数 * 値段 もらうお金= 食べた回数//15 * ボーナス print(支払うお金 - もらうお金)
s409046974
p03795
u236592202
1575575964
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
N=int(input()) x=N*800 y=N//15*200 S=x-y print(S)v
s468454553
p03795
u609814378
1574565160
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
N = int(input()) ALL = 800 * N TIMES = (N // 15) * 200 print(All - TIMES)
s215801822
p03795
u609814378
1574565008
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
N = int(input()) ALL = 800 * N TIMES = (N // 15) * 200 print(All - TIMES)
s082053863
p03795
u609814378
1574564932
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
N = int(input()) ALL = 800 * N TIMES = (N // 15)*200 print(All - TIMES)
s759495050
p03795
u609814378
1574564870
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
N = int(input()) ALL = 800 * N TIMES = N //15 print(All - (200*TIMES))
s897096066
p03795
u609814378
1574564764
Python
Python (3.4.3)
py
Runtime Error
18
3064
70
N = int(input()) ALL = N*800 TIMES = N //15 print(All - (200*TIMES))
s160164895
p03795
u609814378
1574564731
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
N = int(input()) ALL = N*800 TIMES = N //15 if N < 15: print(ALL) else: print(All - (200*TIMES))
s044101180
p03795
u609814378
1574564638
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
N = int(input()) ALL = N*800 TIMES = N //15 if N < 15: print(ALL) else: print(All - (800*TIMES))
s321180132
p03795
u754022296
1572917936
Python
Python (3.4.3)
py
Runtime Error
17
2940
42
n = int(input()) print(800*n - 200*(n//15)
s581545176
p03795
u876688988
1572903251
Python
Python (3.4.3)
py
Runtime Error
18
2940
54
n = input() x = 800 * n y = n / 15 * 200 print(x - y)
s868125680
p03795
u221898645
1572560206
Python
Python (3.4.3)
py
Runtime Error
18
3064
1021
def main(): N = int(input()) s = input() arr = ['']*N for i in range(N): if s[i] == 'x': arr[i] = 'S' cur = 'S' ind = 0 while ind < N: while ind < N and s[ind] != 'x': arr[ind] = cur ind += 1 if cur == 'S': cur = 'W' else: cur = 'S' if ind >= N: break if s[ind] == 'x': ind += 1 while ind < N and s[ind] == 'x': arr[ind] = cur if cur == 'S': cur = 'W' else: cur = 'S' ind += 1 arr[ind-1] = 'S' if arr[ind-2] == 'S': cur = 'W' else: cur = 'S' if ind >= N: break if s[N-1] =='o': if arr[N-1] == 'S' and arr[N-2] == arr[0]: print(''.join(arr)) elif arr[N-1] == 'W' and arr[N-2] != arr[0]: print(''.join(arr)) else: print('-1') else: if arr[N-1] == 'W' and arr[N-2] == arr[0]: print(''.join(arr)) elif arr[N-1] == 'S' and arr[N-2] != arr[0]: print(''.join(arr)) else: print('-1') main()
s378590289
p03795
u958210291
1571705977
Python
Python (3.4.3)
py
Runtime Error
16
2940
93
N = int(input()) print(N*800 - (N/15)*200)N = int(input()) print(N*800 - round((N/15))*200)
s080046824
p03795
u913518919
1571261488
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
N = int(input()) x = N*800 if N>=15: y = (N//15)*200 print(x-y)
s445438210
p03795
u913518919
1571261352
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
N = int(input()) x = N*800 if N>=15: y = N//15*200 print(x-y)
s220776788
p03795
u472721500
1569853617
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
a = int(input()) print((a*800)-(math.floor(a/15)*200))
s854132362
p03795
u740047492
1569343020
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
n = int(input()) x = 800*n b = n%15 if b == 0: y = 200*b print(x-y)
s943288225
p03795
u131264627
1568746764
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
n = int(input()) cb = int((n // 15) * 200 print(800 * n - cb)
s572829879
p03795
u500589232
1568054420
Python
Python (3.4.3)
py
Runtime Error
17
2940
59
n = int(input()) #number of meals return(n*800 - n%15*200)
s823216866
p03795
u500589232
1568053666
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
n = int(input()) #number of meals payment = 0 while (n % 15 >= 1 ){ payment = 800*15 + 200 n -= 15 } payment += n*800 print(payment)
s836917077
p03795
u152638361
1567606882
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
N =int(input()) print(N*800-(n//8)*200)
s377385287
p03795
u093033848
1566204995
Python
Python (3.4.3)
py
Runtime Error
17
3064
48
n = int(input()) print(N * 800 - N // 15 * 200)
s037381040
p03795
u264265458
1566193186
Python
Python (3.4.3)
py
Runtime Error
18
2940
39
a=int(input()) print(800*n-(n//15)*200)
s112382044
p03795
u716314620
1565656860
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
#include <iostream> using namespace std; int main() { int n; cin >> n; cout << n*800 - (n/15)*200 << endl; }
s847906069
p03795
u716314620
1565656828
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
#include <iostream> using namespace std; int main() { int n; cin >> n; cout << n*800 - n/15*200 << endl; }
s765446508
p03795
u123745130
1563913321
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
s=int(input()) print(i*800-(i//15)*200)
s725277000
p03795
u018679195
1563125722
Python
Python (3.4.3)
py
Runtime Error
17
3060
276
n=int(input()) can=n*800 p=n des=200 if n>=15 and n<30: total=can-200 elif n>=30 and n<45: total=can-400 elif n>=45 and n<60: total=can-600 elif n>=60 and n<75: total=can-800 elif n>=75 and n<90: total=can-1000 elif n>=90 and n<=100: total=can-1200 print(total)
s317685142
p03795
u185464141
1562474191
Python
Python (3.4.3)
py
Runtime Error
39
5336
179
# coding: utf-8 # submission # - User: herp_sy # https://atcoder.jp/contests/ import math import statistics n = int(input()) p = 600 * (n // 15) + 800 * (n - n // 15) print(c)
s929508009
p03795
u093500767
1562254286
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
a, b = map(str, input().split()) if a==b: print("H") else: print("D")
s440006211
p03795
u093500767
1562253703
Python
Python (3.4.3)
py
Runtime Error
22
2940
48
n = input() x = 800*n y = 200*(n//15) print(x*y)
s714066404
p03795
u898608852
1562026120
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
N=input() input(x)=800*N y=int(input(200*N/15)) print(x-y)
s083964010
p03795
u932719058
1561145767
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
n = int(input()) print((800 * n) - (200 * (n//15))
s849856495
p03795
u556589653
1560963827
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
N = int(input()) print(N*500-200*(N//15)
s253187847
p03795
u556589653
1560963820
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
N = int(input()) print(N*500-200*(N//15)
s472441660
p03795
u399721252
1560050370
Python
Python (3.4.3)
py
Runtime Error
18
3064
715
def next_to_you(t,a): if a == "o": if t[-1] == "S": if t[-2] == "W": return "W" elif t[-2] == "S": return "S" elif t[-1] == "W": if t[-2] == "W": return "S" elif t[-2] == "S": return "W" elif a == "x": if t[-1] == "S": if t[-2] == "W": return "S" elif t[-2] == "S": return "W" elif t[-1] == "W": if t[-2] == "W": return "W" elif t[-2] == "S": return "S" n = int(input()) s = input() t1, t2, t3, t4 = "SS", "SW", "WS", "WW" for i in range(1,n): t1 += next_to_you(t1,s[i]) t2 += next_to_you(t2,s[i]) t3 += next_to_you(t3,s[i]) t4 += next_to_you(t4,s[i]) ans = -1 for i in [t1,t2,t3,t4]: if i[0] == i[-1]: ans = i[:n] break print(ans)
s522599700
p03795
u906428167
1559183733
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
print( 800*int(input()) - 200*(int(input()) // 15))
s981242450
p03795
u564060397
1558407393
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
=int(input()) print(a*800-200*(a//15))
s575187999
p03795
u591764610
1558153639
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
n-int(input());print(800*n-n//15*200)
s509121386
p03795
u259738923
1558110819
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
print((int(input())+int(input()))*int(input())//2)
s106489182
p03795
u573272932
1558063960
Python
Python (3.4.3)
py
Runtime Error
17
3064
370
inputa = int(input()) inputb = input() flag = 0 res = "" for c in inputb: if c == "o": if flag % 2 == 0: res += "S" else: res += "W" else: res += "S" flag += 1 if inputb[0] == "o": if flag % 2 != 0: print(-1) else: print(res) elif inputb[0] == "x": if flag % 2 != 1: print(-1) else: print(res) else: print(res)
s885547374
p03795
u239301277
1557628628
Python
Python (3.4.3)
py
Runtime Error
18
2940
46
n=int(inpt()) x=800*n y=(n//15)*200 print(x-y)
s189502353
p03795
u507116804
1556719626
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
n=int(input()) k=n//15 print(int(800n-200k))
s299838567
p03795
u957872856
1555523006
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
a = int(input()) b = a * 800 if a >= 15: c = (a // 15) * 200 print(b-c)
s603734971
p03795
u013756322
1554786056
Python
Python (3.4.3)
py
Runtime Error
18
2940
43
n = input() print(800 * n - 200 * (n//15))
s676858451
p03795
u288040231
1554704956
Python
Python (3.4.3)
py
Runtime Error
17
2940
53
N = input() x = N * 800 y = N / 15 * 200 print(x - y)
s791003363
p03795
u288040231
1554704510
Python
Python (3.4.3)
py
Runtime Error
18
2940
55
x = 800 * N y = N / 15 * 200 price = x - y print(price)
s905799127
p03795
u748311048
1554304579
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
print(input()-(input()//15)*200)
s839815893
p03795
u748311048
1554304537
Python
Python (3.4.3)
py
Runtime Error
18
2940
30
print(input()-input()//15*200)
s992722271
p03795
u143509139
1553880698
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
n=int(input());print(800*x-x//15*200)
s730736528
p03795
u824237520
1552497842
Python
Python (3.4.3)
py
Runtime Error
18
2940
111
n, m = map(int, input().split()) if m // 2 <= n: print(m // 2) else: m -= n * 2 print(n + m // 4)
s125261079
p03795
u439392790
1551396478
Python
Python (3.4.3)
py
Runtime Error
18
2940
44
N=int(input()) print int((N*800-(N/15)*200))
s949800662
p03795
u777028980
1550090948
Python
Python (3.4.3)
py
Runtime Error
17
2940
41
a=int(input) print(800*a-200*(int(a/15)))
s788856204
p03795
u371467115
1544849798
Python
Python (3.4.3)
py
Runtime Error
18
2940
62
N=int(input()) x=int(N*800) y=int(N//15*200) print(eval(x-y))
s811006581
p03795
u371467115
1544849725
Python
Python (3.4.3)
py
Runtime Error
18
2940
51
N=int(input()) x=N*800 y=N//15*200 print(eval(x-y))
s725774245
p03795
u828847847
1542995993
Python
Python (2.7.6)
py
Runtime Error
10
2568
2099
#include "bits/stdc++.h" using namespace std; /* macro */ #define rep(i,a,b) for(int i=a;i<b;i++) #define revrep(i,a,b) for(int i = a; i > b; i--) #define int long long #define exist(s,e) ((s).find(e)!=(s).end()) #define all(v) (v).begin(), (v).end() #define each(s,itr) for(auto (itr) = s.begin(); (itr) != s.end(); (itr)++) #define sum(v) accumulate(all(v), (0LL)) #define sec second #define fir first #define pb push_back /* alias */ template<class T> using vec = vector<T>; typedef vector<int> vi; typedef pair<int, int> pi; /* constant */ //const int inf = pow(2, 62); //const int mod = 1e9 + 7; const int mod = 100000; int dx[8]={1,0,-1,0,-1,1,-1,1}; int dy[8]={0,1,0,-1,-1,-1,1,1}; /* io_method */ int input(){int tmp;cin >> tmp;return tmp;} string raw_input(){string tmp;cin >> tmp;return tmp;} string readline(){string s;getline(cin, s);return s;} template<class T> void printx(T n){cout << n;} template<class T, class U> void printx(pair<T, U> p){cout << "(" << p.first << "," << p.second << ")";} template<class T> void printx(vector<T> v){cout << "{";rep(i,0,v.size()){printx(v[i]);if(i != v.size()-1)printx(",");}cout << "}";} template<class T> void print(T n){printx(n);cout << endl;} template<class T> void print(set<T> s){cout << "{";each(s, e){if(e != s.begin()) printx(",");printx(*e);}cout << "}" << endl;} template<class T, class U> void print(map<T, U> mp){cout << "{";each(mp, e){cout << "(" << e -> first << "," << e -> second << ")";}cout << "}" << endl;} /* general_method */ template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; } template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; } /* main */ int ceil(int a, int b){ if(a % b == 0) return a /b; else return a /b + 1; } signed main(){ cin.tie(0); ios::sync_with_stdio(false); int n = input(); print(n * 800 - n/15 * 200); }
s586229362
p03795
u330039499
1541133084
Python
Python (2.7.6)
py
Runtime Error
10
2568
42
N = input() print 800 * N 200 * (N // 15)
s529827960
p03795
u729133443
1537580241
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
n=input();print(n*800-n//15*200)
s477811684
p03795
u038027079
1535641105
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
n = int(input()) print(800 * n - (n // 15) * 200
s215510504
p03795
u038027079
1535641079
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
n = int(input()) print(800 * n - (n // 15) * 200
s208773083
p03795
u394482932
1535372242
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
n=input();print n*800-n//15*200
s122877756
p03795
u366644013
1534340986
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
n = (input()) print(800*n-n%15*200)
s545205043
p03795
u277802731
1534282739
Python
Python (3.4.3)
py
Runtime Error
17
3060
73
n = int(input()) p=1 for i in range(1,n+1): p*=i print(a%(10**9+7))
s977781855
p03795
u114954806
1529162304
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
n=int(input()) print(n*800-adder*200)
s184113377
p03795
u009499586
1524256505
Python
Python (3.4.3)
py
Runtime Error
18
3192
133
#include<bits/stdc++.h> using namespace std; int main(){ int N; cin >> N; x = N*800; Y = N/15; cout << x-y << endl; }
s705388320
p03795
u009499586
1524256329
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
#include<bits/stdc++.h> using namespace std; int main(){ int N; cin >> N cout << 800*N-N/15 << endl; }
s428899119
p03795
u009499586
1524256239
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
#include<bits/stdc++.h> using namespace std; int main(){ int N; cin >> N cout << 800*N-N/15 << endl;
s792594701
p03795
u943004959
1513135256
Python
Python (3.4.3)
py
Runtime Error
18
2940
60
import math N = int(input()) print(math.factorial(N) % MOD)
s571268672
p03795
u257974487
1513090913
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
N = int(input()) p = N // 15 print(N*800 - P*200)
s003432044
p03795
u816631826
1511881957
Python
Python (3.4.3)
py
Runtime Error
18
2940
104
x = int(raw_input()) print(x*800 - (x/15) * 200) #asdf#asdf#asdf#asdf#asdf#asdf#asdf#asdf#asdf#asdf#asdf
s708616020
p03795
u525441048
1505820944
Python
Python (3.4.3)
py
Runtime Error
17
2940
83
N = int(input()) if N > 15: discount = N // 15 print(N * 800 - discount * 200)
s093359213
p03795
u785205215
1505687486
Python
Python (3.4.3)
py
Runtime Error
16
2940
43
n = int(input()) print(800*n -(n%15)*200)
s834447042
p03795
u735154525
1504645146
Python
Python (2.7.6)
py
Runtime Error
10
2568
113
a, b, c = map(int, raw_input().split()) if b - a == c - b: print "YES" else: print "NO"
s493004744
p03795
u057586044
1502316215
Python
Python (3.4.3)
py
Runtime Error
17
3060
97
N,M=map(int,input().split()) ans=0 if N<M: ans=N+((M-(N*2))//4) else: ans=M//2 print(ans)
s680669944
p03795
u855200003
1497416628
Python
Python (3.4.3)
py
Runtime Error
18
3064
1303
n = int(input()) s = list(input()) for i in range(len(s)): if s[i] == 'o': s[i] = True else: s[i] = False state = [None]*n state[0] = 1 state[1] = 1 def next_predict(before_state,current_state,output):#i+1の動物を出力する if current_state == 1: if output == True: if before_state == 1: return 1 else: return 0 else: if before_state == 1: return 0 else: return 1 else: return next_predict(before_state,1,not(output)) isFound = -1 for i in range(4): for j in range(1,n-1): state[j+1] = next_predict(state[j-1],state[j],s[j]) tmp0 = next_predict(state[n-2],state[n-1],s[n-1]) if tmp0 == state[0]: tmp1 = next_predict(state[n-1],state[0],s[0]) if tmp1 == state[1]: isFound = 1 ans = [] for k in range(n): if state[k] == 0: ans.append('W') else: ans.append('S') print("".join(ans)) break else: if i == 0: state[1] = 0 elif i == 1: state[0] = 0 else: state[1] = 1 if isFound == -1: print(-1)
s180098041
p03795
u276192130
1494799786
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
s, c = map(int, input().split()) ans = 0 if s<=2*c: c -= 2*s ans += s + c//4 else: ans += s print (ans)
s488411160
p03795
u034734062
1492126899
Python
Python (3.4.3)
py
Runtime Error
17
2940
167
s_num, c_num = map(int, input().split()) if s_num * 2 > c_num: print(s_num) else: ans = s_num c_num -= s_num * 2 ans += c_num // 4 print(ans)
s915531709
p03795
u332385682
1490703024
Python
Python (3.4.3)
py
Runtime Error
17
3064
443
N = int(input()) s = input() b = [0 if si == 'o' else 1 for si in s] sw = [0] * N for i in range(4): sw[0] = i & 1 sw[1] = (i >> 1) & 1 for k in range(2, N): sw[k] = b[k - 1] ^ sw[k - 1] ^ sw[k - 2] if b[N - 1] != (sw[N - 2] ^ sw[N - 1] ^ sw[0]): continue if b[0] != (sw[N - 1] ^ sw[0] ^ sw[1]): continue ans = ['W' if si else 'S' for si in sw] print(''.join(ans)) quit() print(-1)
s916542940
p03795
u104922648
1490463534
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
num = input() get = num // 15 print((num * 800) - (get * 200))
s959203316
p03795
u104922648
1490463267
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
num = input() get = num / 15 print((num * 800) - (get * 200))
s386695361
p03795
u104922648
1490463102
Python
Python (3.4.3)
py
Runtime Error
18
2940
58
num = input() get = num // 15 print(num * 800 - get * 200)
s413980372
p03795
u711574130
1489879598
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
# -*- coding:utf-8 -*- n = int(input()) r = int(n/15 print(n*800-r*200)
s034148178
p03795
u622568141
1489457101
Python
Python (3.4.3)
py
Runtime Error
17
2940
266
# -*- coding: utf-8 -*- import sys import math # sys.setrecursionlimit(10000) def main(): # 入力処理 N, M = map(int, input().split()) # アルゴリズム本体 K = int(M / 2) # 出力 print(K) if __name__ == '__main__': main()
s707111010
p03795
u622568141
1489457048
Python
Python (3.4.3)
py
Runtime Error
17
2940
280
# -*- coding: utf-8 -*- import sys import math # sys.setrecursionlimit(10000) def main(): # 入力処理 N, M = map(int, input().split()) # アルゴリズム本体 K = N + int((M - 2 * N) / 4) # 出力 print(K) if __name__ == '__main__': main()
s696935687
p03795
u622568141
1489456709
Python
Python (3.4.3)
py
Runtime Error
17
2940
336
# -*- coding: utf-8 -*- import sys import math # sys.setrecursionlimit(10000) def main(): # 入力処理 N, M = map(int, input().split()) # アルゴリズム本体 if N >= 2 * M: K = int(M / 2) else: K = N + int((M - 2 * N) / 4) # 出力 print(K) if __name__ == '__main__': main()
s883262941
p03795
u177756077
1489382484
Python
Python (2.7.6)
py
Runtime Error
10
2568
109
#!/usr/bin/env python n,m=map(int,raw_input().split()) if m<=2*n: print n+(m-2*n)/4 else: print m/2
s640326834
p03795
u503813943
1488735939
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
s,c = map(int,input().split()) if c/2 <= s: print(c//2) else: print(s + (c-s*2)//4)
s352754128
p03795
u346355901
1488561074
Python
Python (3.4.3)
py
Runtime Error
17
2940
233
# coding: utf-8 numbers=input().rstrip().split(" ") num=0 s=int(numbers[0]) c=int(numbers[1]) while c>=2: if s>=1 and c>=2: num+=1 s-=1 c-=2 elif c>=2: s+=1 c-=2 print(num)
s572017060
p03795
u873904588
1488489705
Python
Python (3.4.3)
py
Runtime Error
17
2940
352
N,M = map(int,input().split()) count = 0 while(1): if N>=1: if M>=2: N -= 1 M -= 2 count += 1 else: break else: while(1): if M >= 4 : M -= 4 count += 1 else: break break print(count)
s892919670
p03795
u873904588
1488458112
Python
Python (3.4.3)
py
Runtime Error
18
2940
272
N,M = map(int,input().split()) count = 0 while(1): if N>=1: if M>=2: N -= 1 M -= 2 count += 1 else: break elif M >= 4 : M -= 4 count += 1 else: break print(count)