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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s803779983 | p03861 | u854992222 | 1592879024 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9136 | 60 | a, b, x = map(int, input().split())
count = 0
print(b//a+1) |
s833179955 | p03861 | u942280986 | 1592770727 | Python | Python (3.8.2) | py | Runtime Error | 30 | 8920 | 140 | a,b,x=map(int,input().split())
L=list(range(a,b+1))
L_2=[]
for i in L:
if i % x != 0:
continue
L_2.append(i)
print(len(L_2)) |
s983704634 | p03861 | u475966842 | 1590766047 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 70 | a,b,x=map(int,input().split())
print(len(list(range(a,b+1,x)))-(a==b)) |
s010812864 | p03861 | u475966842 | 1590766013 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 70 | a,b,x=map(int,input().split())
print(len(list(range(a,b+1,x)))-(a==b)) |
s374403640 | p03861 | u475966842 | 1590765974 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | a,b,x=map(int,input().split())
print(len(list(range(a,b+1,x)))-(a==b |
s480458220 | p03861 | u312078744 | 1590641971 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | import math
a, b, x =, ap(int, input().split())
ax = a // x
bx = math.ceil(b // x)
tar = ax - bx + 1
print(tar)
|
s071773924 | p03861 | u135572611 | 1590554939 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | a,b,x = map(int, input().split())
right = b // x + 1
if a = 0:
left = 0
else:
left = (a - 1) // x + 1
print(right - left) |
s692055514 | p03861 | u370852395 | 1589614272 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 181 | a,b,x = map(int,input().split())
if a%x==0 or a==0:
print(int(b//x)-int(a//x)+1)
else:
print(int(b//x)-int(a//x))
#切り捨て除算!!!!!!!
|
s050832335 | p03861 | u306033313 | 1589053525 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 52 | a, b, x = map( int, input())
print(b//x - a//x + 1) |
s098782907 | p03861 | u951582245 | 1588292918 | Python | Python (3.4.3) | py | Runtime Error | 2108 | 14256 | 125 | import numpy as np
a,b,x = map(int,input().split())
Cnt = 0
A = np.array(range(a,b+1))
A = A%x
print(np.count_nonzero(A==0)) |
s009320536 | p03861 | u252964975 | 1588121219 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | import math
a,b,x=map(long, input().split())
print(math.floor(b/x)-math.ceil(a/x)+1)
|
s851143372 | p03861 | u239772565 | 1587937725 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 118 | a,b,x = map(int,input().split())
Rb = range(0,b+1,x)
Mb = max(Rb)//x
Ra = range(0,a,x)
Ma = max(Ra)//x
print(Mb - Ma) |
s293154919 | p03861 | u519923151 | 1587871254 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | a,b,x= map(int, input().split())
xb = b//x
xa = a//x
if a % x ==0:
tx = 1
print(int(xb-xa+tx)) |
s044299676 | p03861 | u151785909 | 1587779826 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a,b,x = map(int, input().split())
if a==0:
a=1
ans += 1
ans = b//x - (a-1)//x
print(ans) |
s627285768 | p03861 | u974745064 | 1587495351 | Python | PyPy3 (2.4.0) | py | Runtime Error | 190 | 38384 | 115 | a,b,x=map(int,input().split())
count=0
lst=[0]*(b+1)
for i in range(0,b+1):
lst[i]=i//x
print(lst[b]-lst[a-1]) |
s418326054 | p03861 | u877283726 | 1587090467 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 141 | import math
a, b, x = map(int,input().split())
def fnc(n,x):
if n == -1:
return 0
return n//x
print(fnc(b,x) - func((a-1),x)) |
s931145615 | p03861 | u877283726 | 1587084835 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 119 | import math
a, b, x = map(int,input().split())
if a % x != 0:
print(b//x - a//x + 2)
else
print(b//x - a/x + 1) |
s825567784 | p03861 | u556161636 | 1587074556 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 3060 | 389 | a,b,x=map(int,input().split())
ans=0
if x==1:
ans=b-(a-1)
else:
for minnum in range(a,b+1):
if minnum%x==0:
#print(minnum)
break
for maxnum in reversed(range(a,b+1)):
if maxnum%x==0:
#print(maxnum)
#print('pass')
break
if minnum==b:
ans=0
else:
ans=maxnum//minnum
#print('pass')
#print(maxnum,minnum)
print(ans)
#print(ans) |
s893452725 | p03861 | u583507988 | 1586993020 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 10 | print(n-m) |
s981392262 | p03861 | u142023109 | 1586802195 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | a, b, x = map(int, input().split())
def f(n):
if n = -1:
return 0
return n // x
print(f(b)-f(a-1)) |
s364702131 | p03861 | u479638406 | 1586705468 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 153 | a, b, x = map(int, input().split())
cnt = 0
for i in range(1, 1e18):
if a <= x*i and x*i <= b:
cnt += 1
elif b <= x*i:
break
print(cnt) |
s057678530 | p03861 | u339199690 | 1586642154 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 118 | a, b, x = map(int, input().split())
if x % a == 0:
print((b - a + 1) // x + 1)
else:
print((b - a + 1) // x)
|
s721453394 | p03861 | u290187182 | 1585791829 | Python | Python (3.4.3) | py | Runtime Error | 26 | 3828 | 346 | import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
def lcm(x, y):
return (x * y) // math.gcd(x, y)
if __name__ == '__main__':
x = [int(i) for i in input().split()]
a = x[0] // x[2]
b = x[1] // x[1]
print(b-a) |
s682513757 | p03861 | u703214333 | 1585766067 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 66 | a,b,x=map(int,input().split())
print(b//x - a//x +(1 if a%x == 0)) |
s422982383 | p03861 | u535659144 | 1585709740 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 199 | x = list(map(int,input().split()))
a = 0
b = x[1]+1
for i in range(x[0],x[1]+1):
if i % x[2] ==0:
a = 1
b=i+x[2]
break
while x[1]>=b:
b += x[2]
a=a+1
print(a) |
s378512493 | p03861 | u920621778 | 1584718386 | Python | PyPy3 (2.4.0) | py | Runtime Error | 177 | 38512 | 119 | a, b, x = map(int, input().split())
count = len(list(filter(lambda t: t % x == 0, list(range(a, b + 1)))))
print(count) |
s089776418 | p03861 | u414050834 | 1584393450 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3068 | 56 | a,b,x=(map(int,input().split())
print((b//x)-((a-1)//x)) |
s617834278 | p03861 | u212831449 | 1584325827 | Python | Python (3.4.3) | py | Runtime Error | 2107 | 3064 | 142 | import math
a,b,x = map(int,input().split())
for i in range(a,b+1):
if i % x == 0:
num = i
break
print((b-num)//x + 1 ) |
s196695631 | p03861 | u017719431 | 1583993187 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 116 | a, b, x = map(int, input().split())
count = 0
for i in range(a, b+1):
if i % x == 0:
count++
print(count) |
s772115665 | p03861 | u075595666 | 1583902195 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | a,b,x = map(int,input().split())
ans = b//x - a//x
if a%x == 0:
ams += 1
print(ans) |
s138049546 | p03861 | u075595666 | 1583902121 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | a,b,x = map(int,input().split())
ans = b//x - a//x
if a%x == 0:
ams += 1
print(ans) |
s335104715 | p03861 | u075595666 | 1583901889 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 125 | a,b,x = map(int,input().split())
if a == 0:
ans = b//x + 1
else:
ans = b//x - a//x
if a%x == 0:
ams += 1
print(ans) |
s680503966 | p03861 | u757030836 | 1583262219 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | a,b,x = map(int,input().split())
ans = 0
for i in range(a,b+1):
if i % x==0 :ans. +=1
print(ans) |
s747923479 | p03861 | u223663729 | 1582772097 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | a, b, x = map(int,input().split())
r = 0
for i in xrange(a, b+1):
if i % x ==0:
r += 1
print(r)
|
s835279309 | p03861 | u630027862 | 1581977881 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 186 | a, b, c = map(int, input().split())
test = []
cnt = 0
for i in range(a:b):
test.append(i)
for i in range(a:b):
if i % == 0:
cnt += 1
else:
continue
print(cnt) |
s571234620 | p03861 | u541610817 | 1581533468 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | a, b, x = [int(x) for x in input().split()]
a //= x
b = (b + x - 1)//b
print(b - a + 1)
|
s267825847 | p03861 | u905743924 | 1580084036 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | a, b, x = map(int, input().split())
print( ( -(a - a%x) + (b - b%x) ) // x + 1 if a != b else (1 if a%b==0 else 0)) |
s828480242 | p03861 | u072717685 | 1579929946 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 199 | a, b, x = map (int,input().split())
r = 0
if a % x == 0:
a_t = a
else:
if ((a // x) + 1) * x > b:
print(0)
else:
a_t = ((a // x) + 1) * x
a_b = b - a_t
r = (a_b // x) + 1
print(int(r)) |
s876010686 | p03861 | u871596687 | 1579384541 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | a,b,x = map(int,input().split())
#if a > x or b < x:
# print("0")
elif a%x == 0:
print(b//x-a//x+1)
else:
print(b//x-a//x)
|
s041507251 | p03861 | u123745130 | 1579155474 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 103 | i,j,n=map(int,input().split())
i_num=i/n
j_num=j/n
cnt=j_num-i_num
if i_num % j==0:
cnt+=1
print(cnt) |
s697530228 | p03861 | u027675217 | 1578950558 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 74 | a,b,x=map(int,input().split())
cnt=0
while b-a<k:
b-=k
cnt+=1
print(cnt) |
s558013041 | p03861 | u609061751 | 1578915788 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 221 | import sys
input = sys.stdin.readline
a, b, x = [int(x) for x in input().split()]
B = 1 + b // x
if a == 0:
print(B)(
elif a % x == 0:
A = 1 + a // x
print(B - A + 1)
else:
A = 1 + a // x
print(B - A)
|
s680240971 | p03861 | u148551245 | 1578526937 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 3060 | 281 | a, b, x = map(int, input().split())
for i in range(a, min(a+x, b+1)):
if i % x == 0:
begin = i
break
for i in range(b, max(b-x, a-1), -1):
if i % x == 0:
end = i
break
if begin > end:
print(0)
else:
print((end - begin) // x + 1)
|
s596408078 | p03861 | u506587641 | 1578364601 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 231 | a,b,x = map(int,input().split())
tmp = 0
if a%x==0 or b%x==0:
tmp += 1
print((b-a)//x+tmp)
else:
if b-a<x:
if a%x+b%x==x and a<=x<=b:
tmp += 1
print(tmp)
else:
print((b-a)//tmp) |
s243592773 | p03861 | u530786533 | 1577806342 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | def f(n, x):
if (n < 0):
return(0)
else:
return(n//x+1)
print(f(b, x) - f(a-1, x))
|
s698717574 | p03861 | u063073794 | 1577498830 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 72 | satoooh
a, b, x = map(int, input().split())
print(b // x - (a - 1) // x) |
s803390583 | p03861 | u867848444 | 1576811881 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 181 | a,b,x=map(int,input().split())
n=b-a+1
l=[0]*(n+1)
init=a
for i in range(1,n+1):
if init%x==0:
l[i]=l[i-1]+1
else:
l[i]=l[i-1]
init+=1
print(l[-1]-l[0]) |
s047052971 | p03861 | u867848444 | 1576811653 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 185 | a,b,x=map(int,input().split())
n=b-a+1
l=[0]*(n+1)
init=a
for i in range(1,n+1):
if init%x==0:
l[i]=l[i-1]+1
else:
l[i]=l[i-1]
init+=1
print(l[-1]-l[1]) |
s004866344 | p03861 | u867848444 | 1576811525 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 185 | a,b,x=map(int,input().split())
n=b-a+1
l=[0]*(n+1)
init=a
for i in range(1,n+1):
if init%x==0:
l[i]=l[i-1]+1
else:
l[i]=l[i-1]
init+=1
print(l[-1]-l[0]) |
s996146818 | p03861 | u867848444 | 1576811411 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 194 | a,b,x=map(int,input().split())
n=b-a+1
l=[0]*(n+1)
init=a
for i in range(1,n+1):
if init%x==0:
l[i]=l[i-1]+1
else:
l[i]=l[i-1]
init+=1
print(l)
print(l[-1]-l[0]) |
s661725851 | p03861 | u417014669 | 1576695787 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | a,b,x=map(int, input().split())
count_n=0
for i in range(a,b+1):
if i%2==0:
count_n+=1
print(count_n) |
s430599023 | p03861 | u116328320 | 1576445302 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 794 | fn main() {
let v = read_vec::<u64>();
let a = v[0];
let b = v[1];
let x = v[2];
let extra = if a % x == 0 { 1 } else { 0 };
println!("{}", b / x - a / x + extra);
}
#[allow(dead_code)]
fn read<T: std::str::FromStr>() -> T {
let mut s = String::new();
std::io::stdin().read_line(&mut s).ok();
s.trim().parse().ok().unwrap()
}
#[allow(dead_code)]
fn read_vec<T: std::str::FromStr>() -> Vec<T> {
read::<String>()
.split_whitespace()
.map(|e| e.parse().ok().unwrap())
.collect()
}
#[allow(dead_code)]
fn read_vec2<T: std::str::FromStr>(n: u32) -> Vec<Vec<T>> {
(0..n).map(|_| read_vec()).collect()
}
#[allow(dead_code)]
fn yn(result: bool) {
if result {
println!("Yes");
} else {
println!("No");
}
}
|
s536548589 | p03861 | u849029577 | 1575185334 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38384 | 55 | n, k = map(int, input().split())
print(k*(k-1)**(n-1)) |
s513929287 | p03861 | u528720841 | 1574718048 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | def w(p, c):
return p // c
A,B,X = map(int, input().split())
print(w(B)-w(A-1)) |
s588929267 | p03861 | u143278390 | 1574297925 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 56 | a,b,x=[int(i) for i in input().split())]
print((b-a)//x) |
s990404865 | p03861 | u557494880 | 1573528395 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 86 | a,b,x = map(int,input().split())
def f(p):
q = p//x
ans = f(b) - f(a-1)
print(ans) |
s718433718 | p03861 | u143278390 | 1573488291 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 3060 | 183 | a,b,x=[int(i) for i in input().split()]
count=0
count=[_ for i in range(a,b+1) if i%x==0]
print(len(count))
'''for i in range(a,b+1):
if(i%x==0):
count+=1
print(count)'''
|
s759783155 | p03861 | u254871849 | 1572218180 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 112 | a, b, x = map(int, input().split())
ls = list(range(a, b+1))
count = [i % x for i in ls].count(0)
print(count)
|
s057735603 | p03861 | u890870565 | 1571440269 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 224 | import math
a, b, x = map(int, input().split())
if a == b:
if a % x == 0:
print(1)
else:
print(0)
elif a % x == 0:
print(math.ceil((b - a) // x) + 1)
else:
print(math.ceil((b - a) // x))
|
s406346060 | p03861 | u654558363 | 1570948343 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 347 | if __name__ == "__main__":
a, b, x = map(int, input().split())
if x > b:
print(0)
else:
found = False
i = a
counter = 0
while i < b + 1:
if not found and i % x != 0:
i += 1
else:
i += x
counter += 1
print(counter)
|
s823753491 | p03861 | u654558363 | 1570948096 | Python | Python (3.4.3) | py | Runtime Error | 2108 | 3060 | 352 | from math import ceil
if __name__ == "__main__":
a, b, x = map(int, input().split())
if x > b:
print(0)
else:
found = False
i = a
counter = 0
while i < b + 1:
if not found and i % x != 0:
i += 1
else:
break
print(ceil((b + 1 - i)/x))
|
s561305300 | p03861 | u069129582 | 1570895729 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | n,k=map(int,input().split())
ans=k
for i in range(n-1):
ans=ans*(k-1)
print(ans) |
s152389104 | p03861 | u391059484 | 1570815809 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 115 | a,b,x = map(int,input().split())
n = 0
for i in range(a,b+1):
if x % i == 0:
n += 1
else:
pass
print(n) |
s227800718 | p03861 | u381246791 | 1570043489 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 249 | #-*- coding:utf-8 -*-
a,b,x=map(int,input().split())
count=0
if x<=b and a!=b:
Base=0
for i in range(a,b+1):
if i%x==0:
Base=i
break
for j in range(Base,b+1,Base):
count+=1
elif a==b and a%x==0:
count+=1
print(count)
|
s396241605 | p03861 | u381246791 | 1570042960 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 157 | a,b,x=map(int,input().split())
for in range(a,b+1):
if i%x==0:
Base=i
break
count=1
num=2
while Base<=b:
Base*=num
count+=1
print(count)
|
s482830034 | p03861 | u515674295 | 1569729925 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 3064 | 212 | a,b,x = map(int,input().split())
for i in range(a,b+1):
if i % x == 0:
break
else:
print(0)
exit()
for j in range(b,a+1,-1):
if j % x == 0:
break
cnt = (j-i) // x + 1
print(cnt) |
s643470469 | p03861 | u515674295 | 1569718650 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 3316 | 228 | import sys
a,b,x = map(int,input().split())
for i in range(a,b+1):
if i % x == 0:
break
else:
print(0)
sys.exit()
for j in range(b,a+1,-1):
if j % x == 0:
break
cnt = (j-i) // x + 1
print(cnt) |
s035399942 | p03861 | u152638361 | 1568606105 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 52 | a, b, x = map(int,input().split())
print((b//x-a//x) |
s096002028 | p03861 | u703890795 | 1567507717 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 53 | a, b, x = map(int input().split())
print(b//x - a//x) |
s750710082 | p03861 | u247366051 | 1567090110 | Python | PyPy2 (5.6.0) | py | Runtime Error | 33 | 27884 | 163 | #include <bits/stdc++.h>
using namespace std;
int main()
{
long long a,b,x,m,n;
cin>>a>>b>>x;
m=a/x;
if(a%x!=0)
m++;
n=b/x;
cout<<n-m+1<<endl;
return 0;
} |
s563832996 | p03861 | u247366051 | 1567090004 | Python | PyPy2 (5.6.0) | py | Runtime Error | 39 | 27884 | 199 | #include <bits/stdc++.h>
using namespace std;
long long a,b,x,ans,temp;
int main()
{
cin>>a>>b>>x;
if(a%x==0) ans=a/x;
else ans=a/x+1;
temp=b/x;
cout<<temp-ans+1;
return 0;
} |
s574674363 | p03861 | u476418095 | 1567089903 | Python | PyPy2 (5.6.0) | py | Runtime Error | 34 | 27884 | 239 | #include <bits/stdc++.h>
using namespace std;
long long a,b,x,s,e;
int main()
{
cin>>a>>b>>x;
if(a%x==0)
{
s=a/x;
}
else
{
s=a/x+1;
}
e=b/x;
cout<<e-s+1;
return 0;//求过!!!!!!!!!!!
} |
s787618983 | p03861 | u426964396 | 1567089746 | Python | PyPy2 (5.6.0) | py | Runtime Error | 34 | 27884 | 229 | #include <bits/stdc++.h>
using namespace std;
long double a,b,x;
long double ans,temp;
int main()
{
cin>>a>>b>>x;
if(a%x==0)
{
ans=a/x;
}
else
{
ans=a/x+1;
}
temp=b/x;
cout<<temp-ans+1;
return 0;
} |
s706608880 | p03861 | u263933075 | 1567089686 | Python | PyPy2 (5.6.0) | py | Runtime Error | 34 | 27884 | 225 | #include <bits/stdc++.h>
using namespace std;
long long a,b,x;
long long ans,temp;
int main()
{
cin>>a>>b>>x;
if(a%x==0)
{
ans=a/x;
}
else
{
ans=a/x+1;
}
temp=b/x;
cout<<temp-ans+1;
return 0;
} |
s841212235 | p03861 | u263933075 | 1567089453 | Python | PyPy2 (5.6.0) | py | Runtime Error | 37 | 27756 | 201 | #include <bits/stdc++.h>
#define int long long
using namespace std;
int a,b,x;
signed main()
{
cin>>a>>b>>x;
printf("%lld",!(a%x)?b/x-a/x+1:b/x-a/x);
//借鉴题解大佬思路
return 0;
} |
s872815960 | p03861 | u723721005 | 1567089390 | Python | PyPy2 (5.6.0) | py | Runtime Error | 34 | 27884 | 194 | #include <bits/stdc++.h>
#define int long long
using namespace std;
int a,b,x;
main()
{
cin>>a>>b>>x;
printf("%lld",!(a%x)?b/x-a/x+1:b/x-a/x);
//借鉴题解大佬思路
return 0;
} |
s125683517 | p03861 | u723721005 | 1567089289 | Python | PyPy2 (5.6.0) | py | Runtime Error | 34 | 27756 | 183 | #include <bits/stdc++.h>
using namespace std;
long long a,b,x;
int main()
{
cin>>a>>b>>x;
printf("%lld",!(a%x)?b/x-a/x+1:b/x-a/x);
//借鉴题解大佬思路
return 0;
} |
s596885963 | p03861 | u263933075 | 1567089199 | Python | PyPy2 (5.6.0) | py | Runtime Error | 34 | 27884 | 183 | #include <bits/stdc++.h>
using namespace std;
int main()
{
long long a,b,x;
cin>>a>>b>>x;
printf("%lld",!(a%x)?b/x-a/x+1:b/x-a/x);
//借鉴题解大佬思路
return 0;
} |
s958136251 | p03861 | u089230684 | 1566804989 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 651 | /*
Suvash Kumar SUMON
B.Sc. Engineering
Dept. of Computer Science & Engineering (CSE)
University of Rajshahi
suvashsumon@outlook.com
*/
#include<bits/stdc++.h>
#define congrats_bro_you_solved_it return 0;
#define cholo_suru_kora_jak() int main()
using namespace std;
int countDivisibles(long long int A, long long int B, long long int M)
{
if (A % M == 0)
return (B / M) - (A / M) + 1;
return (B / M) - (A / M);
}
cholo_suru_kora_jak()
{
long long int a, b, c, count=0;
cin>>a>>b>>c;
long long int ans = (b /c) - ((a - 1) / c);
//cout<<countDivisibles(a,b,c);
cout<<ans;
congrats_bro_you_solved_it;
} |
s715835781 | p03861 | u024245528 | 1566024431 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 162 | a,b,x = map(int,input().split())
aaa =list(range(a,b+1))
#print(aaa)
cnt =0
for i in aaa:
if i % x ==0:
cnt+=1
else :
pass
print(cnt)
|
s133038322 | p03861 | u024245528 | 1566024348 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 162 | a,b,x = map(int,input().split())
aaa =list(range(a,b+1))
#print(aaa)
cnt =0
for i in aaa:
if i % 2 ==0:
cnt+=1
else :
pass
print(cnt)
|
s598784041 | p03861 | u024245528 | 1566024288 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 159 | a,b,x = map(int,input().split())
aaa =list(range(a,b+1))
print(aaa)
cnt =0
for i in aaa:
if i % 2 ==0:
cnt+=1
else :
pass
print(cnt) |
s305774240 | p03861 | u131634965 | 1565724774 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | a, b, x = map(int, input().split())
count:int=0
for i in range(a, b+1):
if i%x==0:
count+=1
print(count) |
s601861743 | p03861 | u369338402 | 1564289259 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 117 | a,b,x=map(int,input().split())
res=0
s=int(a-a%x)
if a%x!=0:
s+=x
t=int(b-b%x)
l=list(range(s,t+1,x))
print(len(l)) |
s423487676 | p03861 | u369338402 | 1564287515 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | a,b,x=map(input().split())
res=0
for i in range((a-a%x)+x,(b-b%x)/x+1,x):
res+=1
print(res) |
s678621622 | p03861 | u257332942 | 1563769616 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 64 | a, b, n = map(int, input().split())
print(b // x - (a - 1) // x) |
s242888962 | p03861 | u239342230 | 1563335910 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 49 | a,b,x=map(int,input().split())
print(b//x-a//a+1) |
s456790180 | p03861 | u863370423 | 1563095624 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 295 | import sys
veces= list()
lines = sys.stdin.readlines()
for linea in lines:
c = linea.split()
c = list(map(int,c))
list(c)
rango = range(c[0],c[1]+1)
j = list(rango)
for l in range(len(j)):
division = j[l]%c[2]
if division == 0:
veces.append(division)
print(int(len(veces))) |
s541807257 | p03861 | u156302018 | 1560881173 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 305 | n, x = map(int, input().split())
a = input().split()
a_sum = 0
for i in range(n):
a_sum += int(a[i])
tolerance = -(-(n * x) // 2)
result = a_sum - tolerance
if int(a[0]) > x:
result += 1
if int(a[0]) > x and int(a[n-1]) > x:
result -= 1
if result < 0:
print("0")
else:
print(result)
|
s085341390 | p03861 | u062459048 | 1560655897 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 166 | a, b, x = map(int, input().split())
n = 0
for i in range(a, b+1):
if i%x == 0:
p = i
n += 1
break
while p < b:
p += x
n += 1
n -= 1
print(n)
|
s678358007 | p03861 | u416758623 | 1559736334 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | a,b,x = map(int, inpu().split())
na = (a-1) // x + 1
nb = b // x + 1
print(nb-na) |
s579235586 | p03861 | u663014688 | 1559349321 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | a,b,x = map(int, input().split())
cnt = 0
for i range(a,b):
if i % x == 0:
cnt += 1
print(cnt) |
s954317724 | p03861 | u083668616 | 1559331646 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38512 | 104 | a, b, x = map(int, input().split())
ans = 0
if a == 0: ans = b/x + 1
else: ans = b/x - (a-1)/x
print ans |
s264787141 | p03861 | u341100892 | 1559263879 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 172 | a, b, x = map(int, input().split())
count = 0
n = a
while n <= b:
if n % x == 0:
count = count + 1
n = n + x
else:
n = n + 1
print(count)
|
s337237971 | p03861 | u460245024 | 1559082861 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3068 | 80 | import math
a, b, x = map(int, input().split())
print(b // x - (a - 1) // x))
|
s393043679 | p03861 | u532966492 | 1557803858 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 49 | a,b=map(int,input().split())
print(b//x-(a-1)//x) |
s367619582 | p03861 | u532966492 | 1557803810 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 20 | print(b//x-(a-1)//x) |
s469973201 | p03861 | u583276018 | 1557439714 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | list = int(input().split())
a = int(list[0] / list[2])
b = int(list[1] / list[2])
ans = a - b
if list[0] % list[2] == 0:
ans += 1
print(ans) |
s613394113 | p03861 | u583276018 | 1557439030 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 167 | list = []
cnt = 0
for i in range(3):
list.append(int(input()))
a = list[0]
b = list[1]
x = list[2]
for i in range(a, b+1):
if i%x == 0:
cnt += 1
print(cnt) |
s322203857 | p03861 | u300637346 | 1557182598 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 117 | a,b,x=map(int,input().split())
if b == 0:
print(1)
elif a == 0:
print(b//x)+1
else:
print(b//x-(a-1)//x)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.