Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
/*************************************************************************
> File Name: b.c
> Author: Stomach_ache
> Mail: 1179998621@qq.com
> Created Time: 2013年12月07日 星期六 15时38分13秒
************************************************************************/
#include<stdio.h>
#include<string.h>
#includ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24959/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24959/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int abs(int a)
{
if(a>0)
return a;
else
return -a;
}
int max(int a,int b)
{
if(a>b)
return a;
else
return b;
}
int main()
{
int x1,x2,y1,y2;
int a,b,c;
while(scanf("%d%d%d%d",&x1,&y1,&x2,&y2)!=EOF)
{
if(x1==x2||y1==y2)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24964/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24964/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int t(int);
int main()
{
int n,k,i,j,dp[100001],h[100001];
scanf("%d %d",&n,&k);
for(i=0;i<n;i++) scanf("%d",&h[i]);
for(i=0;i<=n;i++) dp[i]=1000000000;
dp[0]=0;
for(i=0;i<n-1;i++){
for(j=i+1;j<i+k+1;j++){
if(j<n&&t(h[i]-h[j])+dp[i]<dp[j]){
dp[j]=t(h[i]-h[j])+dp[i];
}
}
}
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249683/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249683/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include <time.h>
typedef long long ll;
typedef long double ld;
#define INF (1LL<<60)
#define MOD1 1000000007
/*swap 交換*/
void swap(ll *a, ll *b){ll c;c=*b;*b=*a;*a=c;}
/*2つのうち大きい数を返す*/
ll max2(ll a,ll b){return a>=b?a:b;}
/*2つのうち小さい数を返す*/
ll min2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249726/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int i,j,k,l,m,n,o,p,q;
int ti,tj;
int ans=0;
scanf("%d%d%d%d",&i,&j,&k,&l);
ti=i;tj=j;
if(i==k&&j==l)
{
printf("0 0 0");
return 0;
}
if(i==k||j==l)
printf("1 ");
else
printf("2 ");
if((i+k)%2!=(j+l)%2)
printf("0 ");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24977/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24977/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#define abs(a) ((a)>(0)?(a):-(a))
#define min(a,b) ((a)<(b)?(a):(b))
int main(){
int n,k;
scanf("%d%d",&n,&k);
int h[n],i,j,dp[n+1],a,b;
for(i=0;i<n;i++)scanf("%d",&h[i]);
dp[0]=0;
dp[1]=abs(h[1]-h[0]);
for(i=1;i<n;i++){
a=dp[i]+abs(h[i]-h[i+1]);
for(j=1;j<k&&i-j>=0;j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249827/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249827/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main() {
double x1,x2,y1,y2;
double x,y,z;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
x = (x2-x1) * (x2-x1);
y = (y2-y1) * (y2-y1);
printf("%.11lf",sqrt(x+y));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249878/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
double x1, y1, x2, y2, d;
scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2);
d = sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
printf("%f\n", d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249920/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249920/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void)
{
double x1, y1, x2, y2;
double distance;
/* ??\??? */
scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2);
/* 2??????????????¢?¨???? */
distance = sqrt(pow((x2 - x1), 2) + pow((y2 - y1), 2));
printf("%.7f\n", distance);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249964/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249964/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void)
{
double a,b,c,d,e;
double A,B,C,D,E;
scanf("%lf %lf %lf %lf",&a,&b,&c,&d);
A = c - a;
B = d - b;
C = pow(A,2);
D = pow(B,2);
e = C + D;
E = sqrt(e);
printf("%lf\n",E);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250005/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250005/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<math.h>
#define N 1002
int main() {
double x1, x2, y1, y2;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
printf("%.8lf\n", sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250049/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250049/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
// your code goes here
int na, nb, k, m, i, j, r, flag =0;
long long int a[100001], b[100001];
scanf("%d%d", &na, &nb);
scanf("%d%d", &k, &m);
for(i=0; i<na; i++)
{
scanf("%lld", &a[i]);
}
for(i=0; i<nb; i++)
{
scanf("%lld", &b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
#include <math.h>
int main()
{
double x1, y1, x2, y2;
double dis;
scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2);
printf("%f\n", sqrt(pow(x2-x1, 2) + pow(y2-y1,2)));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
double x1,y1,x2,y2;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
printf("%.8f\n",(double)sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250186/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250186/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(){
double x1, y1, x2, y2, distance;
scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2);
distance=sqrt((pow(x2-x1, 2)+pow(y2-y1, 2)));
printf("%f\n", distance);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250229/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#define POW(x) ((x) * (x))
int main(){
double x1, y1, x2, y2;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
printf("%.8f\n", sqrt(POW(x2 - x1) + POW(y2 - y1)));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250272/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
// P1(x1, y1)とP1(x2, y2)の距離を出力
int main()
{
double iInputX1, iInputY1, iInputX2, iInputY2;
scanf("%lf %lf %lf %lf", &iInputX1, &iInputY1, &iInputX2, &iInputY2);
printf("%.8lf",sqrt( pow(iInputX1 - iInputX2, 2) + pow(iInputY1 - iInputY2, 2)));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250315/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250315/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void){
double x1, y1, x2, y2;
scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2);
printf("%lf\n", sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250359/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250359/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
double x1,y1,x2,y2;
double d1,d2,d;
scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2);
d1=fabs(x1-x2);
d2=fabs(y1-y2);
d=sqrt(d1*d1+d2*d2);
printf("%.8lf\n",d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250401/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250401/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(){
double x1,y1,x2,y2,x,y,sum,c;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
x= x1-x2;
y= y1-y2;
sum = x*x +y*y;
c= sqrt(sum);
printf("%f\n",c);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250445/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(){
double x1, x2;
double y1, y2;
double ans;
scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
ans = sqrt( (x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
printf( "%lf\n", ans );
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250489/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250489/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int i;
int num[12];
double total, rate, sum;
while(scanf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
&num[0],&num[1], &num[2], &num[3], &num[4], &num[5],
&num[6], &num[7], &num[8], &num[9], &num[10], &num[11]) != EOF){
sum = 0;
for(i = 0; i < 10; i++)
sum += num[i];
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250531/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int c;scanf("%d",&c);
if(c==1||c==2){
printf("%d",c);
}else{
printf("%d",1);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main() {
int a, i, x, y, z;
int res[100001] = {};
scanf("%d", &a);
for (x = 1; x * x + 2 * x < a; x++) {
for (y = 1; y * y + 2 * y < a; y++) {
for (z = 1; z * z + 2 * z < a; z++) {
res[x * x + y * y + z * z + x * y + y * z + z * x]++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250654/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main() {
int n, ans[100000] = {0};
scanf("%d", &n);
for (int x = 1; x <= sqrt(n); x++) {
for (int y = 1; y <= sqrt(n); y++) {
for (int z = 1; z <= sqrt(n); z++) {
ans[x * x + y * y + z * z + x * y + y * z + z * x]++;
}
}
}
for (int i = 1; i <= n; i++) printf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250704/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250704/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void){
int N;
int i,x,y,z,f[10001]={},lhs;
scanf("%d",&N);
for(x=1;x<sqrt(N);x++){
for(y=1;y<sqrt(N);y++){
for(z=1;z<sqrt(N);z++){
lhs = x*x + y*y + z*z + x*y + y*z + z*x;
if(lhs<=N) f[lhs]++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
long n;
scanf("%ld", &n);
long list[n+1];
for (long i = 0; i <= n; i++) {
list[i] = 0;
}
long value;
for (long x = 1; x <= 100; x++) {
for (long y = 1; y <= 100; y++) {
for (long z = 1; z <= 100; z++) {
value = x*x+y*y+z*z;
value += x*y+y... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250791/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int ks=0,kj=10,g,n,m;
while(scanf("%d%d",&n,&m)==2){
g=n+m;
while(1){
g=g/10;
ks++;
if(g==0)break;
}
printf("%d\n",ks);
ks=0;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250841/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250841/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a, b;
int i, j;
int result[200];
int x;
int n;
i = 0;
j = 0;
while (scanf("%d %d", &a, &b) != EOF) {
x = a + b;
n = 1;
while (x >= 10) {
x = x / 10;
n++;
}
result[i] = n;
i++;
}
for (j = 0; j < i; j++) {
printf("%d\n", result[j]);
}
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250885/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250885/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int i, j, k, work[2][200], work2, size;
for (i = 0; i < 200; i++)
if (scanf("%d %d", &work[0][i], &work[1][i]) == EOF)
break;
size = i;
for (k = 0; k < size; k++) {
work[0][k] += work[1][k];
for (i = 0; work[0][k] > 0;i++)
w... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250928/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int calc_digit(int c)
{
int d;
d = 0;
do{
c /= 10;
d++;
} while(c != 0);
return d;
}
int main(){
int i;
int a, b;
int ret;
for(i = 0; i < 200; i++){
ret = scanf("%d %d", &a, &b);
if(ret != EOF){
printf("%d\n", cal... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250971/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a, b;
char buf[8];
while(~scanf("%d %d", &a, &b)) {
printf("%d\n", sprintf(buf, "%d", a + b));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251013/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int c_digit(int a){
int c=0;
int i;
while(a!=0){
c++;
a=a/10;
}
return c;
}
int main(){
int a,b;
int sum;
while(scanf("%d %d",&a,&b)!=EOF){
sum=c_digit(a+b);
printf("%d\n",sum);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
long long n,k,s,p,total,sheet,ans;
int main()
{
scanf("%I64d%I64d%I64d%I64d",&k,&n,&s,&p);
sheet=n/s;
if(n%s)
sheet++;
total=sheet*k;
ans=total/p;
if(total%p)
ans++;
printf("%I64d",ans);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25110/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25110/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{
int n[2], m, d;
while (scanf("%d %d",&n[0], &n[1]) != EOF){
d = 1;
m = n[0] + n[1];
while (m > 0){
if (m > 9){
m /= 10;
d++;
}
else {
break;
}
}
printf("%d\n", d);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251143/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c,count;
while(scanf("%d%d",&a,&b)!=EOF){
c=a+b;
count=0;
for(;c>0;){
if(c==0)break;
c=c/10;
count++;
}
printf("%d\n",count);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251194/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int i,j,k;
while(scanf("%d %d",&i,&j) != EOF){
k = i + j;
int l = 0;
while(k > 0){
k = k/10;
l = l + 1;
}
printf("%d\n",l);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251237/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251237/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,count,val,sum;
while(scanf("%d%d",&a,&b)!=EOF)
{
count=0;
sum=a+b;
while(sum)
{
val=sum%10;
if(val>=0)
count+=1;
sum/=10;
}
printf("%d\n",count);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251280/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a, b;
int n;
int i;
char str[100];
while (fgets(str, 100, stdin) > 0){
sscanf(str, "%d%d", &a, &b);
n = 1;
i = 0;
while ((a + b) / n != 0) n *= 10, i++;
printf("%d\n", i);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251323/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251323/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int main(){
int a,b,sum,n,m;
while(scanf("%d %d",&a,&b)!=EOF){
sum=a+b;
m = 1;
for ( n = 1; n <= 1000000; n = n*10){
if(n<=sum && sum<n*10){printf("%d\n", m);}
m = m+1;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251389/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251389/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b;
int sum;
int cnt=0;
while(scanf("%d %d",&a,&b)==2){
sum=a+b;
while(sum>0){
sum/=10;
cnt++;
}
printf("%d\n",cnt);
cnt=0;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251453/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,i,sum=0,count=0;
while (scanf("%d%d",&a,&b) != EOF){
sum=a+b;
for(;;){
sum=sum/10;
count++;
if(sum==0)
break;
}
printf("%d\n",count);
count=0;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251497/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251497/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int count_digit(int n) {
int count = 0;
while(n != 0) {
n /= 10;
count++;
}
return count;
}
int main() {
int a, b;
while(scanf("%d %d", &a, &b) != EOF) {
printf("%d\n", count_digit(a + b));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251547/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251547/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a, b, sum;
int order;
while(scanf("%d %d", &a, &b) != EOF){
order = 0;
sum = a+b;
while(sum>0){
sum = sum/10;
order++;
}
printf("%d\n", order);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251590/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main( void ) {
int a, b, d, tmp;
for ( ; scanf( "%d %d", &a, &b ) == 2; printf( "%d\n", d ) ) {
tmp = a + b;
for ( d = 1; tmp /= 10; d++ ) ;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251648/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251648/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a=0,b=0,wa,i,keta;
while(scanf("%d %d",&a,&b)!=EOF){
keta=0;
wa=a+b;
if(wa!=0){
while(wa>0){
wa=wa/10;
keta++;
}
}
else{
keta=1;
}
printf("%d\n",keta);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int A,B,C;
while(scanf("%d %d",&A,&B)!=EOF){
A+=B;
C=0;
while(A>=1){
C++;
A/=10;
}
printf("%d\n",C);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251741/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251741/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long int x,y,z,count=0,count_1=1;
while((scanf("%lld %lld",&x,&y))!=EOF)
{
if(x>=0&&y<=1000000)
{
z=x+y;
//m=z;
while(z!=0)
{
z=z/10;
count++;
}
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251792/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251792/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void)
{
int i = 0;
int a = 0;
int b = 0;
int c = 0;
char str[200][7] = {};
int len = 0;
while(scanf("%d %d",&a, &b) == 2){
fflush(stdin);
c = a + b;
sprintf(str[i],"%d",c);
len = strlen(str[i]);
printf("%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251842/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define N 100001
typedef struct {
char a[10];
int t;
}record;
record queue[N];
int head, tail;
void enQueue(record x){
queue[tail] = x;
tail = (tail+1)%N;
}
record deQueue(){
record p = queue[head];
head = (head+1)%N;
return p;
}
int main(){
int n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251886/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251886/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.record = type { [10... |
#include<stdio.h>
#include<string.h>
#define LEN 1000000
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int main(){
int n, i, q, sum =0, last, cnt=0;
scanf("%d %d", &n, &q);
for ( i = 1; i <= n; i++){
scanf("%s", Q[i].name);
scanf("%d", &Q[i].t);
}
i = 1;
last = n;
while(1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251929/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251929/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int n;
int r;
int t;
scanf("%d ", &n);
for(int i = 0; i < n; i++){//
int input;
scanf("%d", &r);
int sum1 = 0;
int max1 = 0;
for (int j = 0; j < r; j++){
scanf("%d", &input);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25198/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
#define LEN 100005
#define MAX 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int head, tail, n;
void enqueue(P x){
Q[tail]=x;
if(tail+1==MAX)
tail=0;
else
tail++;
}
P dequeue(void){
P x;
x=Q[head];
if(head+1==MAX)
head=0;
else head++;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252021/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}T_p;
T_p Q[LEN + 1];
int head, tail, n;
void enqueue(T_p);
T_p dequeue();
int main(){
int elaps = 0, c;
int i, q;
T_p u;
scanf("%d %d", &n, &q);
for(i = 1; i <= n; i++){
scanf("%s", Q[i].name);
sca... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252065/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
#include<string.h>
#define LEN 100000
typedef struct q{
char name[100];
int t;
} P;
P Q[LEN];
int head,tail,n;
void enqueue(P x){
Q[tail]=x;
tail=(tail+1) % LEN;
}
P dequeue(){
P x=Q[head];
head=(head+1) % LEN;
return x;
}
int min(int a,int b){
return a < b ? a : b;
}
int main(){
int lap=0,c;
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252108/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252108/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.q = type { [100 x i... |
#include <stdio.h>
typedef struct
{
char name[16];
int time;
} proc;
#define QUEUE_SIZE (200000)
proc queue[QUEUE_SIZE];
int front;
int rear;
void qpush(proc p)
{
queue[rear] = p;
rear = (rear + 1) % QUEUE_SIZE;
}
proc qfront(void)
{
return (queue[front]);
}
void qpop(void)
{
front = (front... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252151/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252151/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.proc = type { [16 x... |
#include <stdio.h>
#define N 100000
typedef struct{
char name[10];
int time;
}process;
int isempty(void);
int isfull(void);
void enqueue(process);
process dequeue(void);
int head = 0, tail = 0,q;
process p[N];
int main(){
process x;
int i,n,t = 0;
scanf("%d%d",&n,&q);
for(i = 0; i < n; i++){
scanf("%s%d",x.name,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252195/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252195/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.process = type { [1... |
#include<stdio.h>
#include<string.h>
#define N 100000
typedef struct {
char name[10];
int time;
}queue;
void initialize(queue);
void enqueue(queue);
queue dequeue();
//int isEmpty();
//int isFull();
queue Q[N];
int head,tail,n;
/*void initialize(struct queue *q){
int i;
q->head=0;
q->tail=0;
for(i=0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252238/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252238/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.queue = type { [10 ... |
#include<stdio.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail]=x;
tail=(tail+1)%LEN;
}
P dequeue(){
P x=Q[head];
head=(head+1)%LEN;
return x;
}
int min(int a, int b){
if(a<b)return a;
else return b;
}
int main(){
int ela... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252289/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include <stdio.h>
#include <string.h>
#define L 100005
typedef struct{
char name[100];
int t;
}Pro;
Pro Q[L];
int head,matu,n;
void enque(Pro a){
Q[matu]=a;
matu=(matu+1)%L;
}
Pro dque(){
Pro a=Q[head];
head=(head+1)%L;
return a;
}
int min(int a,int b){
if(a<b)return a;
else return b;
}
int ma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252331/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Pro = type { [100 x... |
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
}P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252382/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252382/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include <stdio.h>
#define LEN 100001
typedef struct {
char name[11];
int time;
} pro_t;
pro_t queue[LEN];
int head;
int tail;
void enqueue(pro_t Q, int n) {
queue[tail] = Q;
tail = (tail+1) % (n+1);
}
pro_t dequeue(int n) {
pro_t ret;
ret = queue[head];
head = (head+1) % (n+1);
return ret;
}
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252425/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252425/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pro_t = type { [11 ... |
#include <stdio.h>
#include <stdlib.h>
#define MAX 100001
#define min(a, b) ((a) < (b) ? (a) : (b))
struct work {
char wname[32];
int time;
};
typedef struct work elemType;
elemType Q[MAX];
int head, tail;
void init_queue()
{
head = tail = 0;
}
int is_full()
{
return ((tail + 1) % MAX) == head;
}
int is_empt... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252469/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252469/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.work = type { [32 x... |
#include<stdio.h>
#define n_max 1000000
typedef struct{
char name[10];
int e_time;
}pro;
void enqueue(pro);
pro dequeue();
void exe();
int dif(pro);
int b_time;
int sum=0;
int head=0;
int tail=0;
pro pro1[n_max];
int main(){
int i;
int n;
scanf("%d%d",&n,&b_time);
tail=n;
for(i=0;i<n;i++){
scanf("%s%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252519/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pro = type { [10 x ... |
#include <stdio.h>
#include <string.h>
int main()
{
int t,i,j;
scanf("%d", &t);
for(i=0;i<t;i++)
{
char s[200];
scanf("%s",s);
int c_open =0;
int c_close = 0;
int c_ques = 0;
int n = strlen(s);
if(s[0]==')' || s[n-1] == '(')
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25257/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25257/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#define L 100
#define MAX 1000000
typedef struct pp{
char name[L];
int time;
}p;
void enqueue(p);
p dequeue();
int calct(int,int);
int n,q,i,head=1,tail=0,max,ctime,stime;
p Q[MAX];
int main(){
scanf("%d%d",&n,&q);
tail = n+1;
max = n;
p nowq;
for(i=1;i<=n;i++){
scanf("%s",Q[i].name);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252612/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
#include<stdbool.h>
#define MAX 100001
typedef struct {
int id, time;
} State;
State queue[MAX];
int head, tail;
void push(int id,int tm) {
queue[tail].id = id, queue[tail].time = tm;
tail = ((tail+1==MAX)?0:tail+1);
}
State pop() {
State v = queue[head];
head = ((head+1==MAX)?0:head+1)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.State = type { i32,... |
#include <stdio.h>
#include<string.h>
#define LEN 10000001
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int head = 1, tail = 0, n, empty = 0;
void push(P x){
empty++;
Q[++tail] = x;
}
P pop(){
P res;
empty--;
res = Q[head++];
return res;
}
int main(){
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
#include<string.h>
#define MAX 100005
int min(int a, int b) { return a<b ? a:b; }
typedef struct pp{
char name[100];
int t;
}P;
P Q[MAX+1];
int head=1,tail,n;
void enqueue(P x){
Q[tail]=x;
if(tail!=MAX){
tail++;
} else {
tail=1;
}
}
P dequeue(){
P x;
x=Q[head];
if(head!=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252764/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252764/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a,int b) {
return a < b ? a :... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252807/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252807/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P;
void enq(P x);
P deq(void);
int min(int ,int);
P Q[LEN];
int head,tail,n;
void enq(P x)
{
Q[tail]=x;
tail=(tail+1)%LEN;
}
P deq()
{
P x = Q[head];
head=(head+1)%LEN;
return x;
}
int min(int a,int b)
{... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252850/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252850/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include <stdio.h>
int head = 0,tail = 0;
typedef struct{
int time;
char job[20];
}Data;
Data a[100000];
Data DEQUEUE(void)
{
if(head==100000)
{
head=0;
return a[100000];
}
else
{
head++;
return a[ head - 1 ];
}
}
void ENQUEUE(Data j)
{
if(tail==100000)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252894/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252894/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Data = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a,int b){ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include <stdio.h>
#include <string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int time;
} Process;
void enqueue(Process);
Process dequeue();
Process p[LEN];
int head, tail, n;
int main(){
int i, q, alltime = 0;
Process x;
int p_t;
scanf("%d %d", &n, &q);
for(i = 1 ; i <= n ; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252980/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int i, n, q, *queue, head, tail, execution, time;
char (*name)[10];
head = 0;
tail = 0;
time = 0;
scanf("%d%d", &n, &q);
queue = (int *)malloc( (n+1) * sizeof(int));
name = (char (*)[10])malloc( (n+1) * 10 * sizeof(char));
for( ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253022/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#define LEN 100005
typedef struct a{
char name[100];
int time;
}Q;
int head;
int tail;
Q A[LEN];
void enqueue(Q x){
A[tail] = x;
tail = (tail + 1) % LEN;
}
Q denqueue(){
Q x;
x = A[head];
head = (head + 1) % LEN;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253066/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253066/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.a = type { [100 x i... |
#include <stdio.h>
#include <string.h>
#define LEN 100000
typedef struct {
char name[100];
int time;
} process;
void enqueue( process );
process dequeue();
int head, tail, n;
process q[LEN];
int main( void ){
int i, queue, tmp;
int progress = 0;
scanf("%d %d", &n, &queue);
for( i = 1; i <= n; i++ ){
sc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253109/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.process = type { [1... |
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
struct node{
char name[11];
int time;
struct node *next;
struct node *prev;
};
typedef struct node *NodePointer;
NodePointer nil;
void init(){
nil = malloc(sizeof(struct node));
nil->next = nil;
nil->prev = nil;
}
void deleteNode(NodePointer t){
t->... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253152/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { [11 x... |
#include<stdio.h>
#include<string.h>
#define LEN 100005
// プロセスを表す構造体
typedef struct pp {
char name[100];
int t;
} P;
// public変数の宣言
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(void){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min (in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pp = type { [100 x ... |
#include <stdio.h>
#include <string.h>
#define LEM 100005
typedef struct qq{
char name[100];
int t;
}Q;
Q QQ[LEM];
int head,tail,n,x;
void enqueue(Q);
Q dequeue(void);
int min(int,int);
int main(){
int elaps=0,c;
int i,q;
Q u;
scanf("%d %d",&n,&q);
for(i=1;i<=n;i++){
scanf("%s",QQ[i].name);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253239/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.qq = type { [100 x ... |
#include <stdio.h>
#include <stdlib.h>
int main() {
unsigned short n;
scanf("%hu", &n);
char *str = malloc((n+1) * sizeof(char));
scanf("%s", str);
unsigned short c0 = 0, c1 = 0;
for(unsigned i = 0; i < n; ++i) {
if(str[i] == '0') {
++c0;
} else {
++c1;
}
}
if(c0 == c1) {
printf("2\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25329/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#define MAX 100005
typedef struct{
char name[10];
int t;
} P;
P Q[MAX+1];
int head,tail,N;
void enqueue(P);
P dequeue(void);
int mini(int,int);
int main(){
int fullt = 0;
int c,i,prot;
P pro;
scanf("%d %d",&N,&prot);
for(i=1;i<=N;i++){
scanf("%s",Q[i].name);
scanf("%d",&Q... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253332/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253332/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.P = type { [10 x i8... |
#include <stdio.h>
#include <stdlib.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[LEN+1];
int head, tail, n;
int isEmpty() {
return head == tail;
}
int isFull() {
return head == (tail + 1) % (LEN + 1);
}
void enqueue(P x) {
if (isFull()) {
printf("Queue is full... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253376/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253376/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.P = type { [100 x i... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int N, M;
int color[51][3];
char in_str[51];
int i, j;
int w, b, r;
int nw, nb, nr;
int min;
scanf("%d%d", &N, &M);
memset(color, 0, sizeof(color));
for (i = 1; i <= N; i++){
scanf("%s", in_str);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253426/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void){
int n;
char s[10001];
scanf("%d%s",&n,s);
for(int i=0;strlen(s)>i;++i){
s[i]+=n;
if(s[i]>90)
s[i]=s[i]-26;
}
for(int i=0;strlen(s)>i;++i)
printf("%c",s[i]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void)
{
int n,i,l;
char s[10000];
scanf("%d",&n);
scanf("%s",s);
l=strlen(s);
for(i=0;i<l;i++){
s[i]=s[i]+n;
if(s[i]>90)s[i]=s[i]-26;
}
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253534/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253534/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
int N;
int A;
char S[10010];
int Len;
scanf("%d", &N);
scanf("%s", S);
Len = strlen(S);
for (int i = 0; i != Len; i++) {
if (S[i] + N <= 90) {
putchar(S[i] + N);
}
else {
A = S[i] + N - 90;
putchar(64 + A);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253578/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253578/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){int n,i;char s[10000];scanf("%d %s",&n,s);for(i=0;s[i];i++)printf("%c",(s[i]+n-65)%26+65);puts("");} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253620/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253620/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <limits.h>
#include <math.h>
#include <stdio.h>
int main(void) {
int n;
char s[10000];
scanf("%d",&n);
scanf("%s",&s);
for (int i = 0; s[i]!='\0'; i++)
{
if(s[i]=='\0')break;
s[i]+=n;
if(s[i]>=91){
s[i]=64+(s[i]-90);
}
}
printf("%s\n",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253664/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n;
char s[10001];
scanf("%d %s",&n,s);
for(int i=0; s[i]!='\0'; i++){
s[i]+=n;
if(s[i]>'Z')
printf("%c",s[i]-26);
else
printf("%c",s[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253714/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253714/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main()
{
int i,j,k,n,m;
scanf("%d %d",&n,&m);
if(n==0)
{
printf("0 1\n0 %d\n0 0\n0 %d",m,m-1);
}
else if(m==0)
{
printf("1 0\n%d 0\n0 0\n%d 0",n,n-1);
}
else if(n==m)
{
if(2*sqrt(n*n+m*m)+n*1.0>=sqrt(n*n+m*m)+2*sqrt(n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25378/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25378/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void) {
int n, m, c, ans = 0;
int b[20], a[20][20];
scanf("%d %d %d", &n, &m, &c);
for (int i = 0; i < m; ++i) {
scanf("%d", &b[i]);
}
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
scanf("%d", &a[i][j]);
}
}
int sum;
for (int i = 0; i < n; ++i) {
sum = 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253822/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253822/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int N, M, C, B[20], A, i, j, sum, cnt = 0;
scanf("%d %d %d", &N, &M, &C);
for (i = 0; i < M; i++) {
scanf("%d", &B[i]);
}
for (i = 0; i < N; i++) {
sum = 0;
for (j = 0; j < M; j++) {
scanf("%d", &A);
sum = sum + A * B[j];
}
sum = sum + C;
if (sum > 0) cnt++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253866/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253866/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int box[100000];
int count=0;
int sum=0;
int N,M,C;
scanf("%d%d%d",&N,&M,&C);
for(int i=0;i<M*(N+1);i++){
scanf("%d",&box[i]);
}
for(int n=1;n<N+1;n++){
for(int m=0;m<M;m++){
sum=sum+box[m+M*n]*box[m];
}
if((sum+C)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253909/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253909/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,m,c,a,b[1000],ans,count=0,d,i,j;
scanf("%d",&n);
scanf("%d",&m);
scanf("%d",&c);
for(i=0;i<m;i++){
scanf("%d",&b[i]);
}
for(i=0;i<n;i++){
ans=0;
for(j=0;j<m;j++){
scanf("%d",&a);
d=a*b[j];
ans+=d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253952/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int N, M, C, B[21], *A[21], i, j, sum = 0, count = 0;
scanf("%d%d%d", &N, &M, &C);
for(i = 0; i < M; i++){ scanf("%d", &B[i]); }
for(j = 0; j < N; j++){
A[j] = (int *)malloc(sizeof(int)*M);
for(i = 0; i < M; i++){
scanf("%d", &A[j][i]);
sum += A[j][i]*B[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
int main(void){
int n,m,i,c,j,cnt=0;
int b[10000];
scanf("%d%d%d",&n,&m,&c);
for(i=0;i<m;i++) scanf("%d",&b[i]);
for(i=0;i<n;i++){
int a[110]={0},sum=0;
for(j=0;j<m;j++){
scanf("%d",&a[j]);
int total=a[j]*b[j];
sum+=total;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i, N;
char s[10001][11];
scanf("%d", &N);
for (i = 1; i <= N; i++) scanf("%s", s[i]);
int j, count[3] = {}, flag[10001][2] = {};
for (i = 1; i <= N; i++) {
if (s[i][0] == 'B') {
count[1]++;
flag[i][1] = 1;
}
for (j = 0; s[i][j] != 0; j++) if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
int main (void){
int N,a=0,b=0,c=0,d=0,ans=0;
char S[20];
scanf("%d\n",&N );
for (int i = 0; i < N; i++) {
scanf("%s",S);
for (int i = 0; i < strlen(S)-1; i++) {
if (S[i]=='A'&&S[i+1]=='B') {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct {
int solved[10];
int penalty[10];
} team_work_data_t;
typedef struct {
int team_id;
int solved;
int penalty;
} team_data_t;
int qsort_comp(const void* x,const void* y) {
const team_data_t* a=(const team_data_t*)x;
const team_data_t* b=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254197/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254197/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.team_work_data_t = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.