buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << t * ceil(n / (x * 1.0)) << "\n";
return 0;
}
| #include <iostream>
#include <math.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << t * (int)ceil(n / (x * 1.0)) << "\n";
return 0;
}
| [["+", 0, 16, 31, 16, 12, 16, 12, 74, 0, 24], ["+", 31, 16, 12, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 16, 31, 16, 12, 16, 12, 74, 0, 25]] | 1 | 51 |
n,x,t = map(int, input().split())
ans = n / x
ans = round(ans)
ans = ans * t
if ans == 0:
ans = t
if n == 0:
ans = 0
print(ans) | import math
n,x,t = map(int, input().split())
ans = n / x
ans = math.ceil(ans)
ans = ans * t
if ans == 0:
ans = t
if n == 0:
ans = 0
print(ans) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]] | 5 | 54 |
# スペース区切りの整数の入力
fscanf(STDIN, "%d %d %d", $n, $x, $t);
$result = ($n / $x);
if ($n % $x !== 0) {
$result = intval($result) + 1;
}
echo $result * $t.PHP_EOL; | <?php
# スペース区切りの整数の入力
fscanf(STDIN, "%d %d %d", $n, $x, $t);
$result = ($n / $x);
if ($n % $x !== 0) {
$result = intval($result) + 1;
}
echo $result * $t.PHP_EOL;
| [["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605]] | 6 | 62 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int tako, min, sum;
cin >> sum >> tako >> min;
int i = 1;
while (true) {
if (sum < tako * i) {
break;
}
i++;
}
cout << min * i << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int tako, min, sum;
cin >> sum >> tako >> min;
int i = 1;
while (true) {
if (sum <= tako * i) {
break;
}
i++;
}
cout << min * i << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 61 |
#include <stdio.h>
int main(void) {
int N, X, T;
scanf("%d%d%d", &N, &X, &T);
printf("%d\n", (N / X + (!!N % X)) * T);
return 0;
} | #include <stdio.h>
int main(void) {
int N, X, T;
scanf("%d%d%d", &N, &X, &T);
printf("%d\n", (N / X + (!!(N % X))) * T);
return 0;
} | [["+", 12, 23, 0, 91, 28, 91, 28, 23, 0, 24], ["+", 12, 23, 0, 91, 28, 91, 28, 23, 0, 25]] | 0 | 59 |
n, x, t = map(int, input().split())
ans = 0
while True:
if (n - x) <= 0:
break
if (n - x) > 0:
ans += t
n -= x
print(ans)
| n, x, t = map(int, input().split())
ans = t
while True:
if (n - x) <= 0:
break
if (n - x) > 0:
ans += t
n -= x
print(ans)
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22]] | 5 | 53 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, c, ans;
cin >> a >> b >> c;
ans = c * ceil(a / b);
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, c;
int ans;
cin >> a >> b >> c;
ans = c * ceil(a / b);
cout << ans;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 47 |
x=input().split()
n=int(x[0])
t=int(x[1])
k=int(x[2])
if n%t==0: print(k*(n/t))
else: print(k*(n/t + 1))
| x=input().split()
n=int(x[0])
t=int(x[1])
k=int(x[2])
if n%t==0: print(k*int(n/t))
else: print(k*int(n/t + 1))
| [["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22]] | 5 | 67 |
N,X,T = map(int, input().split())
a = N // X
if N % X ==0:
pritn(a*T)
else:
print((a+1)*T) | N,X,T = map(int, input().split())
a = N // X
if N % X ==0:
print(a*T)
else:
print((a+1)*T) | [["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22]] | 5 | 48 |
a = input().split(" ")
N = int(a[0])
X = int(a[1])
T = int(a[2])
b = N//X
if N%T != 0:
b += 1
print(b*T) | a = input().split(" ")
N = int(a[0])
X = int(a[1])
T = int(a[2])
b = N//X
if N%X != 0:
b += 1
print(b*T) | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 60 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, x, t;
cin >> n >> x >> t;
cout << ceil(n / float(x)) * t;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, x, t;
cin >> n >> x >> t;
cout << int(ceil(n / float(x)) * t);
return 0;
} | [["+", 8, 9, 0, 1, 0, 16, 12, 2, 63, 40], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 25]] | 1 | 63 |
/*
ABC026 高橋君の給料 DFS
int dfs(int n,vector<vector<int>> G){
int mi = 1000000000;
int ma = 0;
int w,v;
for(int i=0;i<G[n].size();i++){
v = G[n][i];
if(G[v].size() == 0)w = 1;
else w = dfs(v,G);
mi = min(mi,w);
ma = max(ma,w);
}
return mi + ma + 1;
}
int main() {
int n;
cin >> n;
Gra... | /*
ABC026 高橋君の給料 DFS
int dfs(int n,vector<vector<int>> G){
int mi = 1000000000;
int ma = 0;
int w,v;
for(int i=0;i<G[n].size();i++){
v = G[n][i];
if(G[v].size() == 0)w = 1;
else w = dfs(v,G);
mi = min(mi,w);
ma = max(ma,w);
}
return mi + ma + 1;
}
int main() {
int n;
cin >> n;
Gra... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 804 |
N, X, T = map(int, input().split())
t = round(N / X)
print(t * T) | import math
N, X, T = map(int, input().split())
t = math.ceil(N / X)
print(t * T) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]] | 5 | 32 |
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < n; ++i)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n / x + 1) * t << endl;
return 0;
}
| #define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < n; ++i)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n + x - 1) / x * t << endl;
return 0;
}
| [["-", 12, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]] | 1 | 70 |
/* Aditya0412 */
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pb push_back
#define ve vector
#define vii vector<int>
#define vll vector<ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vpl vector<pll>
#define fi first
#define all(a) (a).begin(), (a).end()
#define si(x) ... | /* Aditya0412 */
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pb push_back
#define ve vector
#define vii vector<int>
#define vll vector<ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vpl vector<pll>
#define fi first
#define all(a) (a).begin(), (a).end()
#define si(x) ... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 427 |
from math import floor
N, X, T = map(int, input().split())
print(floor(N/X)*T) | from math import ceil
N, X, T = map(int, input().split())
print(ceil(N/X)*T) | [["-", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22]] | 5 | 33 |
def lscan; gets.split.map(&:to_i); end
n,x,t = lscan
p (x+n-1)/n*t | def lscan; gets.split.map(&:to_i); end
n,x,t = lscan
p (n+x-1)/x*t
| [["-", 31, 738, 31, 739, 0, 738, 31, 738, 31, 22], ["-", 31, 738, 31, 739, 0, 738, 31, 738, 17, 72], ["+", 31, 738, 31, 739, 0, 738, 31, 738, 17, 72], ["+", 31, 738, 31, 739, 0, 738, 31, 738, 12, 22], ["-", 0, 652, 3, 4, 0, 738, 31, 738, 12, 22], ["+", 0, 652, 3, 4, 0, 738, 31, 738, 12, 22]] | 4 | 33 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define M_PI 3.14159265358979323846
const int M = 1e9 + 7;
long long mod(long long x) { return ((x % M + M) % M); }
long long add(long long a, long long b) { return mod(mod(a) + mod(b)); }
long long m... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define M_PI 3.14159265358979323846
const int M = 1e9 + 7;
long long mod(long long x) { return ((x % M + M) % M); }
long long add(long long a, long long b) { return mod(mod(a) + mod(b)); }
long long m... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 243 |
n,x,t = map(int, input().split())
nums = n//x if n%x is 0 else n//4 + 1
print(t*nums) | n,x,t = map(int, input().split())
nums = n//x if n%x is 0 else n//x + 1
print(t*nums) | [["-", 0, 662, 12, 41, 0, 657, 31, 657, 12, 612], ["+", 0, 662, 12, 41, 0, 657, 31, 657, 12, 22]] | 5 | 41 |
#include <bits/stdc++.h>
using namespace std;
#define bitCount(num) __builtin_popcount(num)
#define pb push_back
#define ll long long
#define bye return 0;
#define f(i, a, b) for (long long i = a; i < b; i++)
#define testCases \
long long t; ... | #include <bits/stdc++.h>
using namespace std;
#define bitCount(num) __builtin_popcount(num)
#define pb push_back
#define ll long long
#define bye return 0;
#define f(i, a, b) for (long long i = a; i < b; i++)
#define testCases \
long long t; ... | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 100 |
import math
N, X, T = map(int, input().split())
time = (math.ceil(N // X)) * T
print(time) | import math
N, X, T = map(int, input().split())
time = (math.ceil(N / X)) * T
print(time) | [["-", 31, 23, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 31, 23, 0, 652, 3, 4, 0, 657, 17, 85]] | 5 | 38 |
n,x,t=map(int,input().split())
import math
print((math.floor(n/x)+1)*t) | n,x,t=map(int,input().split())
import math
print((math.ceil(n/x))*t)
| [["-", 31, 23, 0, 657, 31, 652, 63, 319, 319, 22], ["+", 0, 657, 31, 23, 0, 652, 63, 319, 319, 22], ["-", 3, 4, 0, 657, 31, 23, 0, 657, 17, 72], ["-", 3, 4, 0, 657, 31, 23, 0, 657, 12, 612]] | 5 | 37 |
n,x,t = map(int,input().split())
print((n//x+1)*t)
| n,x,t = map(int,input().split())
print(((n-1)//x+1)*t)
| [["+", 31, 23, 0, 657, 31, 657, 31, 23, 0, 24], ["+", 0, 657, 31, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 657, 31, 657, 31, 23, 0, 657, 12, 612], ["+", 31, 23, 0, 657, 31, 657, 31, 23, 0, 25]] | 5 | 30 |
#include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int X, T, N;
cin >> N >> X >> T;
cout << ceil(N / (double)X) * T << endl;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int X, T, N;
cin >> N >> X >> T;
cout << (int)ceil(N / (double)X) * T << endl;
return 0;
} | [["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["+", 31, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 25]] | 1 | 49 |
N, X, T = map(int, input().split())
print(T *(N//X + 1) if N%X != 1 else T * (N // X)) | N, X, T = map(int, input().split())
print(T *(N//X + 1) if N%X != 0 else T * (N // X)) | [["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612]] | 5 | 44 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
sc.close();
int result = (N / X) * T;
if (N % X > 0) {
result = +T;
}
System.out.pr... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
sc.close();
int result = (N / X) * T;
if (N % X > 0) {
result = result + T;
}
Syste... | [["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22]] | 3 | 103 |
#include <iostream>
using namespace std;
int main() {
long long int n, x, t;
cin >> n >> x >> t;
if (n % x == 0)
cout << t * n / x;
else
cout << (t * n / x) + 1;
}
| #include <iostream>
using namespace std;
int main() {
long long int n, x, t;
cin >> n >> x >> t;
if (n % x == 0)
cout << t * n / x;
else
cout << t * ((n / x) + 1);
}
| [["-", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 16, 12, 23, 0, 24], ["+", 12, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 16, 12, 23, 0, 25]] | 1 | 58 |
<?php
fscanf(STDIN,"%d %d %d",$n, $x, $t);
$result = $n/$x;
if($n%$x!=0){
$result++;
}
echo $result*$t."\n"; | <?php
fscanf(STDIN,"%d %d %d",$n, $x, $t);
$result = floor($n/$x);
if($n%$x!=0){
$result++;
}
// echo $result."\n";
echo $result*$t."\n"; | [["+", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 0, 1, 0, 11, 12, 613, 3, 3, 0, 24], ["+", 0, 1, 0, 11, 12, 613, 3, 3, 0, 25]] | 6 | 55 |
n, x, t = [int(i) for i in input().split()]
if n < x:
print(x)
else:
if n % x == 0:
print((n // x) * t)
else:
print(((n // x) + 1) * t)
| n, x, t = [int(i) for i in input().split()]
if n <= x:
print(t)
else:
if n % x == 0:
print((n // x) * t)
else:
print(((n // x) + 1) * t)
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 66 |
#include <stdio.h>
int main() {
int x, t, n;
scanf("%d%d%d", &n, &x, &t);
if (n % x == 0)
printf("%d", n / x * t + t);
else
printf("%d", n / x * t + t);
return 0;
} | #include <stdio.h>
int main() {
int x, t, n;
scanf("%d%d%d", &n, &x, &t);
if (n % x == 0)
printf("%d", n / x * t);
else
printf("%d", n / x * t + t);
return 0;
} | [["-", 64, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["-", 64, 1, 0, 2, 3, 4, 0, 16, 12, 22]] | 1 | 73 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n = 0, x = 0, t = 0;
cin >> n >> x >> t;
int r = 0;
if (n % x) {
int d = n / x;
r = d * t;
} else {
int d = n / x;
d += 1;
r = d * t;
}
cout << r << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n = 0, x = 0, t = 0;
cin >> n >> x >> t;
int r = 0;
if ((n % x) == 0) {
int d = n / x;
r = d * t;
} else {
int d = n / x;
d += 1;
r = d * t;
}
cout << r << endl;
return 0;
} | [["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 88 |
import math
n=input().split()
a=int(n[0])/int(n[1])
b=math.floor(a)
print(b)
if int(n[0])%int(n[1])!=0:
b=b+1
print(b*int(n[2])) | # coding: utf-8
# Your code here!
import math
n=input().split()
a=int(n[0])/int(n[1])
b=math.floor(a)
if int(n[0])%int(n[1])!=0:
b=b+1
print(b*int(n[2])) | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 76 |
n,x,t=map(int,input().split())
count=0
a=0
a=x
if(n<=x):
print(t,end='\n')
elif(x==1):
print((n)*t)
else:
while(x<=n):
count=count+1
x=x+a
print((count+1)*t) | n,x,t=map(int,input().split())
count=0
a=0
a=x
if(n<=x):
print(t,end='\n')
elif(x==1):
print((n)*t)
else:
while(x<n):
count=count+1
x=x+a
print((count+1)*t) | [["-", 8, 196, 0, 52, 15, 23, 0, 666, 667, 19], ["+", 8, 196, 0, 52, 15, 23, 0, 666, 667, 18]] | 5 | 88 |
import math
n, x, t = list(map(int, input().split()))
z = n / x
if z == n//x:
k = int(z)+1
print(k * t)
else:
print(int(z) * t) | n, x, t = list(map(int, input().split()))
z = n / x
if z != float(n//x):
k = int(z) + 1
print(k * t)
else:
print(int(z) * t)
| [["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79], ["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0... | 5 | 60 |
#include <iostream>
using namespace std;
int main() {
int N, X, T;
cin >> N;
cin >> X;
cin >> T;
int sum = 0;
int time = 0;
while (N >= sum) {
sum += X;
time += T;
}
cout << time << endl;
}
| #include <iostream>
using namespace std;
int main() {
int N, X, T;
cin >> N;
cin >> X;
cin >> T;
int sum = 0;
int time = 0;
while (N > sum) {
sum += X;
time += T;
}
cout << time << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 63 |
n,x,t = map(int,input().split())
ans = int(n/x)*t
if(n%x != 0):
ans += t
| n,x,t = map(int,input().split())
ans = int(n/x)*t
if(n%x != 0):
ans += t
print(ans) | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 40 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int Time = N / X;
if (N % X != 0)
cout << Time++ * T << endl;
else
cout << Time * T << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int Time = N / X;
if (N % X != 0)
cout << (Time + 1) * T << endl;
else
cout << Time * T << endl;
} | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 12, 16, 31, 27, 17, 29], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 60 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
if (n % x == 0) {
cout << t * n / x << endl;
} else {
cout << t * n / x + t << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
if (n % x == 0) {
cout << t * n / x << endl;
} else {
cout << t * (n / x + 1) << endl;
}
}
| [["+", 0, 16, 31, 16, 12, 16, 12, 23, 0, 24], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 31, 16, 12, 16, 12, 23, 0, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 12, 23, 0, 25]] | 1 | 62 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
double d = Math.ceil(a / b);
System.out.println(d * c);
}
}
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double a = sc.nextInt();
double b = sc.nextInt();
int c = sc.nextInt();
double d = Math.ceil(a / b);
System.out.println((int)d * c);
}
}
| [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512], ["+", 0, 492, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 506, 0, 507], ["+", 0, 492, 3, 4, 0, 16, 31, 74, 0, 25]] | 3 | 85 |
#include <stdio.h>
int main(void) {
int n, x, t;
int ans;
scanf("%d %d %d", &n, &x, &t);
if (n % x == 0) {
ans = n / x + t;
} else {
ans = (n / x + 1) * t;
}
printf("%d", ans);
return 0;
} | #include <stdio.h>
int main(void) {
int n, x, t;
int ans;
scanf("%d %d %d", &n, &x, &t);
if (n % x == 0) {
ans = n / x * t;
} else {
ans = (n / x + 1) * t;
}
printf("%d", ans);
return 0;
} | [["-", 64, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 48]] | 0 | 80 |
N, X, T = map(int, input().split())
i=0
ans=0
if X==1:
ans = N*T
elif N<=X:
ans = T
else:
while i<=N :
i = i+X
ans = ans+T
print(ans)
| N, X, T = map(int, input().split())
i=0
ans=0
if X==1:
ans= N*T
else:
if N<=X:
ans = T
else:
while i<N :
i = i+X
ans = ans+T
print(ans) | [["-", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102], ["+", 0, 57, 75, 76, 8, 196, 0, 57, 0, 121], ["-", 75, 76, 8, 196, 0, 52, 15, 666, 667, 19], ["+", 75, 76, 8, 196, 0, 52, 15, 666, 667, 18]] | 5 | 63 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T, A;
cin >> N >> X >> T;
if (N % X > 0) {
A = N / X + 1;
cin >> A;
} else if (N % X == 0) {
A = N / X;
cin >> A;
}
cout << A << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T, A;
cin >> N >> X >> T;
if (N % X > 0) {
A = N / X + 1;
cin >> A;
} else if (N % X == 0) {
A = N / X;
cin >> A;
}
cout << A * T << endl;
}
| [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 78 |
n,x,t=map(int, input().split())
ct=0
while(n>=0):
ct+=t
n-=x
print(ct) | n,x,t=map(int, input().split())
ct=0
while(n>0):
ct+=t
n-=x
print(ct)
| [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 20], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 47]] | 5 | 38 |
#include <iostream>
#include <math.h>
int main() {
double T, X, N;
int ans;
std::cin >> N >> X >> T;
ans = floor(N / X) * T;
std::cout << ans;
} | #include <iostream>
#include <math.h>
int main() {
double T, X, N;
int ans;
std::cin >> N >> X >> T;
ans = ceil(N / X) * T;
std::cout << ans;
} | [["-", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22]] | 1 | 47 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int count;
if (N == X) {
cout << T << endl;
}
else if (N / X % 0) {
cout << (N / X) * T << endl;
}
else if (X != 1) {
count = N / X;
cout << (count + 1) * T << endl;
}
else {
cout... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int count;
if (N == X) {
cout << T << endl;
}
else if (N % X == 0) {
cout << (N / X) * T << endl;
}
else if (X != 1) {
count = N / X;
cout << (count + 1) * T << endl;
}
else {
cou... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 105 |
a=inpiut()
a=[int(i) for i in a.split()]
n=int(a[0]/a[1])
print(n*a[2]) | import math
a=input()
a=[int(i) for i in a.split()]
n=math.ceil(a[0]/a[1])
print(n*a[2]) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319,... | 5 | 44 |
n,x,t=map(int,input().split())
count=2
item=0
time=0
while True:
if n <= item:
break
if n==x:
time=t
break
if n > item:
item=x*count
time=t*count
count=count+1
print(time) | n,x,t=map(int,input().split())
count=2
item=0
time=0
while True:
if n <= item:
break
if n<=x:
time=t
break
if n > item:
item=x*count
time=t*count
count=count+1
print(time) | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 69 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int n;
int x;
int t;
cin >> n;
cin >> x;
cin >> t;
double y = double(n) / double(x);
double result = ceil(y);
y = result * t;
cout << y;
return 0;
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n;
int x;
int t;
cin >> n;
cin >> x;
cin >> t;
double y = double(n) / double(x);
int result = ceil(y) * t;
cout << result;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 1... | 1 | 69 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
int n, x, t;
cin >> n >> x >> t;
int sm = n / x;
if ((n / x) % 10 != 0) {
sm++;
}
cout << sm * t;
return 0;
}
| #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
int n, x, t;
cin >> n >> x >> t;
int sm = n / x;
if ((n % x) != 0) {
sm++;
}
cout << sm * t;
return 0;
}
| [["-", 51, 16, 31, 16, 31, 23, 0, 16, 17, 85], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 109], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 69 |
nums = input().split()
s = int(nums[0])/int(nums[1])
v = int(nums[0])/int(nums[1])
if v != 0:
s = int(s)+1
time = s*int(nums[2])
print(time) | nums = input().split()
s = int(nums[0])/int(nums[1])
v = int(nums[0])%int(nums[1])
if v != 0:
s = int(s)+1
time = s*int(nums[2])
print(int(time)) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 71 |
#include <algorithm> // アルゴリズム
#include <cmath> //
#include <iostream>
#include <map> // map
#include <set> // set
#include <sstream> // istringstream
#include <string> // 文字列
#include <vector> // vector
using namespace std;
int main() {
// input sample
int N, X, T;
cin >> N >> X >> T;
// int A[... | #include <algorithm> // アルゴリズム
#include <cmath> //
#include <iostream>
#include <map> // map
#include <set> // set
#include <sstream> // istringstream
#include <string> // 文字列
#include <vector> // vector
using namespace std;
int main() {
// input sample
int N, X, T;
cin >> N >> X >> T;
// int A[... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n % x == 0 ? n / x : n / x + 1);
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << t * (n % x == 0 ? n / x : n / x + 1);
return 0;
}
| [["+", 8, 9, 0, 1, 0, 16, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48]] | 1 | 50 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t, k;
cin >> n >> x >> t;
k = (n + x - 1) / x;
k *= t;
cout << t;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t, k;
cin >> n >> x >> t;
k = (n + x - 1) / x;
k *= t;
cout << k;
return 0;
} | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 52 |
#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
int main() {
int N, X, T;
cin >> N >> X >> T;
if (N % X == 0) {
cout << N / T * T << endl;
} else {
c... | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
int main() {
int N, X, T;
cin >> N >> X >> T;
if (N % X == 0) {
cout << (N / X) * T << endl;
} else {
... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 25]] | 1 | 88 |
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
if (N % T == 0) {
cout << N / X * T << endl;
} else {
cout << (N / X * T + T) << endl;
}
} | #include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
if (N % X == 0) {
cout << N / X * T << endl;
} else {
cout << (N / X * T + T) << endl;
}
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 70 |
#include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
if (n == x) {
cout << t;
} else if (n > x) {
int ans = 0;
int remain = n - x;
while (remain > 0) {
ans++;
remain = remain - x;
}
t = t + ans * t;
cout << t;
}
}
| #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
if (n == x) {
cout << t;
} else {
int ans = 0;
int remain = n - x;
while (remain > 0) {
ans++;
remain = remain - x;
}
t = t + ans * t;
cout << t;
}
} | [["-", 8, 9, 0, 57, 75, 76, 0, 57, 0, 121], ["-", 0, 57, 75, 76, 0, 57, 15, 339, 0, 24], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 0, 57, 75, 76, 0, 57, 15, 339, 0, 25]] | 1 | 89 |
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 22 20:59:55 2020
@author: naoki
"""
import sys
N,X,T = map(int,input().split())
for i in range(N):
if N<=X*(i+1):
time = T*(i+1)
print(time)
sys.exit
| # -*- coding: utf-8 -*-
"""
Created on Sat Aug 22 20:59:55 2020
@author: naoki
"""
import sys
N,X,T = map(int,input().split())
for i in range(N):
if X*i<N and N<=X*(i+1):
time = T*(i+1)
print(time)
sys.exit
| [["+", 0, 57, 15, 679, 31, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 17, 48], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 12, 22], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 679, 17, 355]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
#define REP(i, p, n) for (ll i = p; i < ll(n); ++i)
#define rep(i, n) REP(i, 0, n)
using ll = long long;
using pll = pair<ll, ll>;
int main() {
ll N, X, T;
cin >> N >> X >> T;
const auto n = (X / T) + (X % T ? 1 : 0);
cout << n * T << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define REP(i, p, n) for (ll i = p; i < ll(n); ++i)
#define rep(i, n) REP(i, 0, n)
using ll = long long;
using pll = pair<ll, ll>;
int main() {
ll N, X, T;
cin >> N >> X >> T;
const auto n = (N / X) + (N % X ? 1 : 0);
cout << n * T << endl;
return 0;
}
| [["-", 49, 50, 51, 16, 31, 23, 0, 16, 31, 22], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 31, 22], ["-", 49, 50, 51, 16, 31, 23, 0, 16, 12, 22], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 22], ["-", 51, 16, 12, 23, 0, 41, 15, 16, 31, 22], ["+", 51, 16, 12, 23, 0, 41, 15, 16, 31, 22], ["-", 51, 16, 12, 23, 0, 41, 15, 16, 12, 22... | 1 | 92 |
/*input
20 12 6
*/
#include <bits/stdc++.h>
using namespace std;
#define ld long double
#define ll long long int
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define vpll vector<pair<long long, long long>>
#define fill(a, val) m... | /*input
1000 1 1000
*/
#include <bits/stdc++.h>
using namespace std;
#define ld long double
#define ll long long int
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define vpll vector<pair<long long, long long>>
#define fill(a, va... | [["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["+", 12, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 12, 16, 31, 74, 39, 77, 39, 86, 39, 40], ["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 25]] | 1 | 346 |
#include <bits/stdc++.h>
using namespace std;
#define fast_io \
ios_base::sync_with_stdio(false); \
cin.tie(nullptr); \
cout.tie(nullptr);
#define c... | #include <bits/stdc++.h>
using namespace std;
#define fast_io \
ios_base::sync_with_stdio(false); \
cin.tie(nullptr); \
cout.tie(nullptr);
#define c... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 154 |
//#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#include <x86intrin.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
#define V vector
template <typename T> bool chmin(T &a, con... | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#include <x86intrin.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
#define V vector
template <typename T> bool chmin(T &a, con... | [["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 220 |
N, X, T = map(int, input().split())
for i in range(200):
if (i+1) * X >= N:
print((i+1)*T)
break | N, X, T = map(int, input().split())
for i in range(2000):
if (i+1) * X >= N:
print((i+1)*T)
break | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 48 |
/// mAAria...
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | /// mAAria...
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 275 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define F first
#define S second
#define pb push_back
#define mp make_pair
#define yes "YES"
#define no "NO"
#define rsort(a) sort(a.rbegin(), a.rend())
const int mod = 1000000007;
// void dfs(int i);
long long modular_expo(long long x, long long y);
b... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define F first
#define S second
#define pb push_back
#define mp make_pair
#define yes "YES"
#define no "NO"
#define rsort(a) sort(a.rbegin(), a.rend())
const int mod = 1000000007;
// void dfs(int i);
long long modular_expo(long long x, long long y);
b... | [["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 16, 12, 16, 31, 74, 39, 77, 39, 78], ["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 25]] | 1 | 291 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxe = 2e5 + 5;
ll t = 1, n, x, k;
void solve() {
cin >> n >> x >> k;
ll ans = k * (n / x);
if (n % x != 0)
ans++;
cout << ans;
return;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
while (t--) {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxe = 2e5 + 5;
ll t = 1, n, x, k;
void solve() {
cin >> n >> x >> k;
ll ans = k * (n / x);
if (n % x != 0)
ans += k;
cout << ans;
return;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
while (t--) {
... | [["-", 8, 9, 0, 57, 64, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 107], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 12, 22]] | 1 | 106 |
/*
Author : ritikm272
*/
// Template Starts Here
// Headers
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <deque>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#i... | /*
Author : ritikm272
*/
// Template Starts Here
// Headers
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <deque>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#i... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 31, 16, 12, 16, 12, 2, 63, 23, 0, 24], ["+", 31, 16, 12, 16, 12, 2, 63, 23, 0, 22], ["+", 31, 16, 12, 16, 12, 2, 63, 23, 0, 25]] | 1 | 935 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool c... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool c... | [["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 25]] | 1 | 158 |
#include <bits/stdc++.h>
//#define M_PI 3.14159265358979323846
using namespace std;
#define M 1000000007
#define rep(i, a, b) for (int i = a; i < b; ++i)
#define repb(i, a, b) for (int i = a; i >= b; --i)
#define repv(arr) for (auto it = arr[i].begin(); it != arr[i].end(); ++it)
#define vi vector<int>
#define vb vect... |
#include <bits/stdc++.h>
//#define M_PI 3.14159265358979323846
using namespace std;
#define M 1000000007
#define rep(i, a, b) for (int i = a; i < b; ++i)
#define repb(i, a, b) for (int i = a; i >= b; --i)
#define repv(arr) for (auto it = arr[i].begin(); it != arr[i].end(); ++it)
#define vi vector<int>
#define vb vect... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 158 |
#include <bits/stdc++.h>
#define ll long long
#define PB push_back
#define MP make_pair
#define PI pair<int, int>
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define FOR(i, l, h) for (int i = (int)(l); i <= (int)(h); ++i)
#define FORD(i, h, l) for (int i = (int)(h); i >= (int)(l); --i)
//#define max(a,b) a>b... |
#include <bits/stdc++.h>
#define ll long long
#define PB push_back
#define MP make_pair
#define PI pair<int, int>
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define FOR(i, l, h) for (int i = (int)(l); i <= (int)(h); ++i)
#define FORD(i, h, l) for (int i = (int)(h); i >= (int)(l); --i)
//#define max(a,b) a>b... | [["+", 0, 1, 0, 16, 12, 16, 12, 74, 0, 24], ["+", 0, 16, 12, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 12, 16, 12, 74, 0, 25]] | 1 | 273 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define speed \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define FL(i, a, n) for (ll i = a; i < n; i++)
#define e... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define speed \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define FL(i, a, n) for (ll i = a; i < n; i++)
#define e... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 120 |
#include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define int long long int
#define M 1... | #include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define int long long int
#define M 1... | [["+", 0, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 25], ["+", 0, 16, 12, 16, 31, 74, 51, 23, 0, 24], ["-", 0, 2, 3, 4, 0, 16, 12, 2, 63, 40], ["+", 0, 2, 3, 4, 0, 16, 12, 2, 63, 40]] | 1 | 59 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
lli mod = 1000000007;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
lli n, x, t;
cin >> n >> x >> t;
cout << ceil((n * 1.0) / x) * t << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
lli mod = 1000000007;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
lli n, x, t;
cin >> n >> x >> t;
cout << (lli)ceil((n * 1.0) / x) * t << endl;
} | [["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["+", 31, 16, 12, 16, 31, 74, 39, 77, 39, 78], ["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 25]] | 1 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
int ans = n / x * t;
if (ans % n != 0)
ans += t;
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
int ans = n / x * t;
if (n % x != 0)
ans += t;
cout << ans << endl;
return 0;
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 57 |
N,X,T = int(input().split())
t = 0
while(N>0):
t += 1
N -= X
print(T*t) | N,X,T = map(int, input().split())
t = 0
while(N>0):
t += 1
N -= X
print(T*t) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]] | 5 | 38 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
if (n % x != 0)
cout << (n / x) * t << endl;
else
cout << ((n / x) + 1) * t << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
if (n % x == 0)
cout << (n / x) * t << endl;
else
cout << ((n / x) + 1) * t << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 64 |
#include <algorithm>
#include <cstring>
#include <iostream>
#include <math.h>
#include <string.h>
#define ll long long
ll gcd(ll a, ll b) {
ll s = 1, c;
while (a && b) {
if ((~a & 1) && (~b & 1))
a >>= 1, b >>= 1, s <<= 1;
else if (~a & 1)
a >>= 1;
else if (~b & 1)
b >>= 1;
else if... | #include <algorithm>
#include <cstring>
#include <iostream>
#include <math.h>
#include <string.h>
#define ll long long
ll gcd(ll a, ll b) {
ll s = 1, c;
while (a && b) {
if ((~a & 1) && (~b & 1))
a >>= 1, b >>= 1, s <<= 1;
else if (~a & 1)
a >>= 1;
else if (~b & 1)
b >>= 1;
else if... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109]] | 1 | 203 |
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1000 * 1000 + 10;
int arr[MAXN];
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
// cout << fixed << setprecision(10);
int n, x, t;
cin >> n >> x >> t;
cout << ((n / x) + min(x % n, 1)) * t << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
const int MAXN = 1000 * 1000 + 10;
int arr[MAXN];
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
// cout << fixed << setprecision(10);
int n, x, t;
cin >> n >> x >> t;
cout << ((n / x) + min(n % x, 1)) * t << endl;
return 0;
}
| [["-", 0, 16, 12, 2, 3, 4, 0, 16, 31, 22], ["-", 0, 16, 12, 2, 3, 4, 0, 16, 17, 109], ["+", 0, 16, 12, 2, 3, 4, 0, 16, 17, 109], ["+", 0, 16, 12, 2, 3, 4, 0, 16, 12, 22]] | 1 | 91 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pint pair<int, int>
#define pll pair<ll, ll>
#define vint vector<int>
#define vll vector<ll>
#define ALL(x) (x).begin(), (x).end()
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
const int IN... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pint pair<int, int>
#define pll pair<ll, ll>
#define vint vector<int>
#define vll vector<ll>
#define ALL(x) (x).begin(), (x).end()
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
const int IN... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 158 |
[N, X, T] = map(int, input().split())
if N%T > 0:
print((N//X+1)*T)
else:
print(N//X*T)
| [N, X, T] = map(int, input().split())
if N%X > 0:
print((N//X+1)*T)
else:
print(N//X*T)
| [["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 49 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define true 1
#define false 0
typedef long long ll;
typedef unsigned char Uchar;
int main(void) {
int i, j;
int n, x, t;
scanf("%d %d %d", &n, &x, &t);
int a = n % x;
int b = n / x;
int c;
if (a == 0) {
c = b * t;
} el... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define true 1
#define false 0
typedef long long ll;
typedef unsigned char Uchar;
int main(void) {
int i, j;
int n, x, t;
scanf("%d %d %d", &n, &x, &t);
int a = n % x;
int b = n / x;
int c;
if (a == 0) {
c = b * t;
} el... | [["+", 0, 57, 75, 76, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 17, 32]] | 0 | 112 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
int ans = N / X;
if (N % T != 0)
ans++;
System.out.println(ans * T);
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
int ans = N / X;
if (N % X != 0)
ans++;
System.out.println(ans * T);
}
}
| [["-", 0, 57, 15, 15, 0, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 12, 22]] | 3 | 91 |
import os
import sys
from io import BytesIO, IOBase
def main():
n, x, t = map(int, input().split())
lol = x // t
if x % t:
print(t*(lol+1))
else:
print(t*lol)
# region fastio
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
self._fd = file... | import os
import sys
from io import BytesIO, IOBase
def main():
n, x, t = map(int, input().split())
lol = n // x
if n % x:
print(t*(lol+1))
else:
print(t*lol)
# region fastio
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
self._fd = file... | [["-", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22], ["-", 0, 656, 0, 14, 8, 196, 0, 57, 0, 121], ["+", 0, 656, 0, 14, 8, 196, 0, 57, 0, 121], ["+", 0, 14, 8, 196, 0, 57, 15, 657, 31, 22], ["-", 0, 14, 8, 196, 0, 57, 15, 657, 12, 22],... | 5 | 526 |
N,X,T= map(int,input().split())
if N%T != 0:
print((N//X)*T+T)
else:
print((N//X)*T) | N,X,T= map(int,input().split())
if N%X != 0:
print((N//X)*T+T)
else:
print((N//X)*T) | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 49 |
N, X, T = list(map(int, input().split()))
print(round(N/X)*T) | import math
N, X, T = list(map(int, input().split()))
print(math.ceil(N/X)*T) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 652, 63, 319, 500, 22], ["+", 3, 4, 0, 657, 31, 652, 63, 319, 0, 131], ["+", 3, 4, 0, 657, 31, 652, 63, 319, 319, 22]] | 5 | 32 |
#include <bits/stdc++.h>
using namespace std;
#define nl "\n"
typedef long long ll;
int gcd(int a, int b) {
if (a == 0)
return b;
return gcd(b % a, a);
}
vector<ll> mnp(1e5 + 1, 1e15);
map<pair<int, int>, int> mp;
void dfs(int u, int p, vector<vector<int>> &df, vector<int> vis, ll cost) {
// cout<<u<<end... | #include <bits/stdc++.h>
using namespace std;
#define nl "\n"
typedef long long ll;
int gcd(int a, int b) {
if (a == 0)
return b;
return gcd(b % a, a);
}
vector<ll> mnp(1e5 + 1, 1e15);
map<pair<int, int>, int> mp;
void dfs(int u, int p, vector<vector<int>> &df, vector<int> vis, ll cost) {
// cout<<u<<end... | [["+", 0, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 25], ["+", 0, 16, 12, 16, 31, 74, 51, 23, 0, 24]] | 1 | 203 |
a=input().split('')
n=int(a[0])
x=int(a[1])
t=int(a[2])
f=x
m=t
while x<n:
x=x+f
t=t+m
print(t)
| a=input().split(' ')
n=int(a[0])
x=int(a[1])
t=int(a[2])
f=x
m=t
while x<n:
x=x+f
t=t+m
print(t)
| [["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6]] | 5 | 63 |
N, X, T = map(int, input().split())
if N%T == 0:
print(N//X*T)
else:
print(N//X*T+T) | N, X, T = map(int, input().split())
if N%X == 0:
print(N//X*T)
else:
print(N//X*T+T) | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 45 |
#include <bits/stdc++.h>
#include <string.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, n, m) for (int i = n; i < m; i++)
#define reps(i, n) for (int i = 1; i <= n; i++)
#define ALL(v) v.begin(), v.end()
#define rALL(v) v.rbegin(), v.rend()
#define pb(x) push_back(x)
#define mp(x, y) make_pair(x, y)
... | #include <bits/stdc++.h>
#include <string.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, n, m) for (int i = n; i < m; i++)
#define reps(i, n) for (int i = 1; i <= n; i++)
#define ALL(v) v.begin(), v.end()
#define rALL(v) v.rbegin(), v.rend()
#define pb(x) push_back(x)
#define mp(x, y) make_pair(x, y)
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 188 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
void pk() {
ll n, x, t;
cin >> n >> x >> t;
cout << (fixed) << setprecision(0) << ceil(n / x) * t;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// a #ifndef ONLINE_JUDGE
// freopen("/home/priyanshu/Hackercup/input.txt", ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
void pk() {
ll n, x, t;
cin >> n >> x >> t;
cout << (fixed) << setprecision(0) << ceil((double)n / x) * t;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// a #ifndef ONLINE_JUDGE
// freopen("/home/priyanshu/Hackercup/inpu... | [["+", 31, 2, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 31, 2, 3, 4, 0, 16, 31, 74, 0, 25]] | 1 | 91 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int n, x, t;
double tmp;
cin >> n >> x >> t;
tmp = ceil((double)n / x);
cout << tmp * t << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
int n, x, t;
double tmp;
cin >> n >> x >> t;
tmp = ceil((double)n / x);
cout << (int)tmp * t << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["+", 31, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 25]] | 1 | 54 |
n, x, t = map(int, input().split())
print((n//x) * t) if n%x==0 else print((n//x) * t) | n, x, t = map(int, input().split())
print((n//x) * t) if n%x==0 else print((n//x + 1) * t) | [["+", 3, 4, 0, 657, 31, 23, 0, 657, 17, 72], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 12, 612]] | 5 | 45 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int n, x, t;
cin >> n >> x >> t;
int y = (n + 1) / x;
cout << (y + 1) * t << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int n, x, t;
cin >> n >> x >> t;
int y = (n - 1) / x;
cout << (y + 1) * t << endl;
return 0;
} | [["-", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 33]] | 1 | 67 |
N,X,T = map(int,input().split())
print((N//X)*T if N%T == 0 else (N//X + 1)*T )
| N,X,T = map(int,input().split())
print((N//X)*T if N%X == 0 else (N//X + 1)*T )
| [["-", 3, 4, 0, 41, 0, 666, 0, 657, 12, 22], ["+", 3, 4, 0, 41, 0, 666, 0, 657, 12, 22]] | 5 | 44 |
N, X, T = map(int, input().split())
if N % T > 0:
ret = (N // X + 1) * T
else:
ret = (N // X) * T
print(ret) | N, X, T = map(int, input().split())
if N % X > 0:
ret = (N // X + 1) * T
else:
ret = (N // X) * T
print(ret) | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 51 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long int ll;
typedef long double ld;
#define llset \
tree<ll, null_type, less<ll>, rb... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long int ll;
typedef long double ld;
#define llset \
tree<ll, null_type, less<ll>, rb... | [["+", 0, 16, 31, 16, 12, 16, 12, 2, 63, 22]] | 1 | 368 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
//#define f(i,a,n) for(ll i=a;i<n;i++)
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
//#define f(i,a,n) for(ll i=a;i<n;i++)
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [["+", 0, 1, 0, 16, 12, 2, 63, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 2, 63, 23, 0, 22], ["+", 0, 1, 0, 16, 12, 2, 63, 23, 0, 25], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 25]] | 1 | 410 |
/*
Author: Racer5x
*************************************** UNAUTHORISED COPYING OF CODE
PROHIBITED **********************************
*/
// #pragma GCC optimize("O3")
// #pragma GCC optimize("Ofast")
// #pragma GCC optimize("unroll-loops")
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=na... | /*
Author: Racer5x
*************************************** UNAUTHORISED COPYING OF CODE
PROHIBITED **********************************
*/
// #pragma GCC optimize("O3")
// #pragma GCC optimize("Ofast")
// #pragma GCC optimize("unroll-loops")
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=na... | [["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 25]] | 1 | 111 |
#define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <functional>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
unsigned long long A, B, C;
int ans;
cin >> A >> B >> C;
if (A % B > 0) {
ans = C * (A / B) + 1;
} else {
... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <functional>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
unsigned long long A, B, C;
int ans;
cin >> A >> B >> C;
if (A % B > 0) {
ans = C * (A / B) + C;
} else {
... | [["-", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 88 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <map>
#include <queue>
#include <set>
using namespace std;
typedef long long LL;
int main() {
int N, X, T;
scanf("%d%d%d", &N, &X, &T);
int num = N / X + N % X;
printf("%d\n", num * T);
return 0;
} | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <map>
#include <queue>
#include <set>
using namespace std;
typedef long long LL;
int main() {
int N, X, T;
scanf("%d%d%d", &N, &X, &T);
int num = N / X + (N % X != 0);
printf("%d\n", num * T);
return 0;
} | [["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 24], ["+", 49, 50, 51, 16, 12, 23, 0, 16, 17, 79], ["+", 49, 50, 51, 16, 12, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]] | 1 | 76 |
#include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
#define FOR(i, a, b) for (int i = a; i < b; ++i)
#define FORR(i, a, b) for (int i = b - 1; i >= a; --i)
#define REP(i, n) FOR(i, 0, n)
#define REPR(i, n) FORR(i, 0, n)
int main() {
int N, X... | #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
#define FOR(i, a, b) for (int i = a; i < b; ++i)
#define FORR(i, a, b) for (int i = b - 1; i >= a; --i)
#define REP(i, n) FOR(i, 0, n)
#define REPR(i, n) FORR(i, 0, n)
int main() {
int N, X... | [["-", 0, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["-", 0, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 105 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.