Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void)
{
int a, b, tmp;
while (scanf("%d %d",&a, &b) != EOF) {
tmp = a + b;
if (tmp < 10) {
printf("1");
} else if (tmp < 100) {
printf("2");
} else if (tmp < 1000) {
printf("3");
} else if (tmp < 10000) {
printf("4");
} else if (tmp < 100000) {
printf("5");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251135/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251135/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,s,d;
while(scanf("%d %d",&a,&b)!=EOF){
s=a+b;
d=0;
while(!(s<1)){
s=s/10;
d++;
}
printf("%d\n",d);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251179/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251179/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,number,digit;
while (scanf("%d %d",&a,&b)==2) {
digit = 0;
number = a+b;
while (number != 0) {
number = number / 10;
++digit;
}
printf("%d\n",digit);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251221/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251221/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,c,i;
while( scanf("%d %d",&a,&b)!=EOF)
{
c=a+b;
for(i=1;c>=10;i++)
c=c/10;
printf("%d\n",i);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251265/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251265/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[200],b[200],c[200],t,i,j;
for(i=0;i < 200;i++){
if( scanf("%d %d",&a[i],&b[i]) == EOF ){
break;
} else {
c[i] = a[i] + b[i];
}
}
for(j=0;j < i;j++){
t = 1;
while(c[j] >= 10){
c[j] = c[j] / 10... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251308/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251308/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=0;
while(scanf("%d %d",&a,&b) != EOF)
{
c=0;
a+=b;
while(a>0)
{
c++;
a/=10;
}
printf("%d\n",c);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251380/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251380/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 a, b;
while(scanf("%d %d",&a,&b)==2) printf("%d\n",(int)log10(a+b)+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251445/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,c,d,count=0,i=0;
while(scanf("%d",&a)!=EOF){
scanf("%d",&b);
c=a+b;
for(;;){
c=c/10;
count++;
if(c<1)break;
}
printf("%d\n",count);
count=0;
i++;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251496/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251496/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 a, b, ans;
while (scanf("%d %d", &a, &b) != EOF) {
ans = (int)log10(a + b) + 1;
printf("%d\n", ans);
};
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251539/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251539/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 k,n,s,p,pack,t=0,m=0;
scanf("%d%d%d%d",&k,&n,&s,&p);
if(n%s!=0)
m = (n/s)+1;
else if(n%s==0)
m=n/s;
t = k*m;
if(t%p==0)
pack = t/p;
else
pack=(t/p)+1;
printf("%d\n",pack);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25159/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 digits(int x) {
int count = 0;
while(x>0) {
x /= 10;
count++;
}
return(count);
}
int main(void) {
int a, b;
int sum;
while( scanf("%d %d", &a, &b) !=EOF) {
sum = a + b;
printf("%d\n", digits(sum));
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251632/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251632/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>
#define PI 3.14159265358979323
//void quick(int *,long long,long long);
//int comp(char *a,char *b);
int main(){
int a,b,i;
while(scanf("%d %d",&a,&b)!=EOF){
i=1;
a=a+b;
while(a/10!=0){
a=a/10;
i++;
}
printf("%d\n",i);
}
//for(i=0;i<=100... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251690/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251690/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 a,b,c,d;
while(scanf("%d %d", &a, &b) != EOF){
c=(int)log10(a+b)+1;
printf("%d\n",c);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251740/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 getDigit(int x)
{
char digits[20];
sprintf(digits, "%d", x);
return strlen(digits);
}
int main()
{
char digits[20];
int a, b;
while(scanf("%d %d", &a,&b)==2){
a += b;
printf("%d\n", getDigit(a));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251791/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, n, ans;
while(scanf("%d %d", &a, &b) != EOF)
{
ans = 0;
n = a + b;
while (n) {
n/=10;
ans++;
}
printf("%d\n", ans);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251834/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>
#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(void) {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a,int b) {
return a < b ? a : b;
}
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251878/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 : b;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251920/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251920/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>
typedef struct{
char c[20];
int d;
}X;
int main()
{
int a,b,i,e=0;
scanf("%d %d",&a,&b);
X x[200000];
for(i=0;i<a;i++){
scanf("%s %d",x[i].c,&x[i].d);
}
for(i=0;i<a;i++){
x[i].d-=b;
if(x[i].d<=0){
e+=x[i].d+b;
printf("%s %... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251971/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.X = type { [20 x i8... |
#include<stdio.h>
#include<string.h>
#define LEN 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==LEN)tail=0;
else tail=tail+1;
}
P dequeue(void){
P x;
x=Q[head];
if(head+1==LEN)head=0;
else head=head+1;
return x;
}
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252013/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 name 10
#define LEN 100005
typedef struct{
char s[name];
int time;
}P;
P Q[LEN+1];
int head,tail;
void Enqueue(P );
P Dequeue(void);
int main()
{
int i,n,q,T=0;
P y;
scanf("%d%d",&n,&q);
for(i=0;i<n;i++){
scanf("%s%d",y.s,&y.time);
Enqueue(y);
}
while(n!=0){
y=Dequeu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252057/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>
int main()
{
int t,x,y,a,b,n,p,q,i,k,j;
scanf("%d",&t);
while(t--)
{
scanf("%d",&x);
a=0; p=0;
while(x--)
{
scanf("%d",&n);
a=a+n;
if(a>p) p=a;
}
scanf("%d",&y);
b=0; q=0;
while(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25210/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25210/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>
typedef struct{
char n[10];
int t;
}P;
void enqueue(P);
P dequeue(void);
int min(int a,int b){
if(a >= b)
return b;
else return a;
}
int head,tail,n;
P Q[100000];
int main(){
int q, i, total = 0, c;
P u;
scanf("%d%d", &n, &q);
for( i = 0; i < n; i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252143/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 <string.h>
#define LEN 100006
typedef struct {
char name[100];
int t;
}process;
process q[100006];
int head,tail,n;
void enqueue();
process dequeue();
int main(){
int n,qu,i,j,ti,ans = 0;
process p;
scanf("%d%d",&n,&qu);
head = 1;
tail = n + 1;
for(i = 1;i <= n;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252194/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>
#define LEN 100000
typedef struct{
char name[10];
int time;
}P;
int head=0;
int tail=0;
P Q[LEN];
void enqueue(P);
P dequeue(void);
int main(){
int q,i,n,sum=0;
P u;
scanf("%d%d",&n,&q);
for (i=0;i<n;i++){
scanf("%s%d",Q[i].name,&Q[i].time);
enqueue(Q[i]);
}
i=0;
whi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252244/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<string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN + 1];
int head=1, tail, n;
void enqueue(P x){
Q[tail] = x;
if(tail >= LEN){
tail=0;
}
else{
tail++;
}
}
P dequeue(){
P y;
y = Q[head];
if(head >= LEN){
he... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252288/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
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+1==MAX){
tail=0;
}
else{
tail++;
}
}
P dequeue(){
P a=Q[head];
if (head+1>= MAX) {
head=0;
}
else{
head++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252330/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>
typedef struct{
char name[10];
int t;
} process;
int n,q;
int i=0,j=0;
int timer=0;
int head=-1;
int tail=0;
int flag=0;
process x[100000];
void enqueue(process k){
if(tail==n){
tail=0;
}
x[tail]=k;
tail++;
}
process dequeue(){
head++;
if(head==n){
head=0;
}
return x[head];
}
int main(vo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252381/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 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_252424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252424/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>
#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_252468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252468/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>
#include <string.h>
#define LEN 1000005
#define MAX 1000
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int head, tail, n;
void initialize();
//キューを空に設定
int Empty();
//キューが空かを判断
int isFull();
//キューが満杯か判断
void enqueue(P);
//tailが指す場所にxを追加, MAX以上になってしまう場合はtailを0として循環
P dequeue();
/... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252518/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252518/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:b;
}
int main(){
int el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252561/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252561/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>
#include<stdlib.h>
#define LEN 1000000
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
P w[LEN+1];
int head, tail, n;
int Empty(){
if(head == tail)
return 1;
else return 0;
}
void enqueue(P x){
Q[tail] = x;
tail++;
}
void ini(){
head = 0;
tail = n+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252619/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252619/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>
#include<stdlib.h>
#include<stdio.h>
long long int mod=1000000007;
void merge(long long int arr_1[],long long int arr_2[],int size,long long int arr_3[])
{
int i=0,j=0,k=0,size_i=(size+1)/2,size_j=size-size_i;
while(k<size)
{
if((arr_1[i]>=arr_2[j]||i==si... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25267/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"
@mod = dso_local local_unname... |
#include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int head=1, tail, n;
void enqueue(P x){
Q[tail]=x;
if(tail+1==LEN){
tail=0;
}
else{
tail++;
}
}
P dequeue(){
P a=Q[head];
if (head+1>= LEN) {
head=0;
}
else{
head++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252727/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 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail;
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 m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252770/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252770/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;
int head,tail,n;
P Q[LEN];
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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252813/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252813/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 1000005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int main(){
int elaps=0,c;
int i,q,n,sum=0;
P u;
scanf("%d %d", &n, &q);
for ( i = 1; i <= n; i++){
scanf("%s", Q[i].name);
scanf("%d", &Q[i].t);
}
i=1;
sum=n;
while(1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252857/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252857/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 main(void)
{
int n, k, i;
int r[100];
double sum = 0;
scanf("%d%d", &n, &k);
for(i=0; i<n; i++){
scanf("%d", &r[i]);
sum += r[i];
}
double mean = sum / n;
int count = 0;
while(mean < k-0.5){
sum += k;
n++;
mean = su... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25290/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25290/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<stdlib.h>
#define N 100000
typedef struct pp{
char name[100];
int time;
}P;
int head=0,tail=0;
P Q[N];
void enqueue(P*,P);
P dequeue(P*);
int main(){
int i,at=0,t,n,u[N];
P q;
scanf("%d%d",&n,&t);
for(i=1;i<=n;i++){
scanf("%s",&q.name);
scanf("%d",&q.time);
en... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252943/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252943/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>
#define LEN 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 == LEN)tail=0;
else tail++;
}
P dequeue(void){
P x;
x = Q[head];
if(head == LEN)head=0;
else head++;
return x;
}
int ma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252987/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252987/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 kota[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 mini(int a,int b)
{
return a<b ? a:b;
}
int main()
{
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253029/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253029/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>
#define BUF_SIZE 20
struct process {
char name[12];
int time;
};
#define min(a, b) ((a) > (b) ? (b) : (a))
#define QUEUE_SIZE 100001
static int queue[QUEUE_SIZE];
static int start = 0;
static int end = 0;
void enqueue(int idx) {
end = (end+1)%QUEUE_S... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253072/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253072/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>
#define MAX 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[MAX];
int head, tail, n;
void initailize(){
head = 0; tail = 0;
}
void enqueue(P x){
Q[tail]=x;
tail = (tail+1)%MAX;
}
P dequeue(){
P x = Q[head];
head = (head+1)%MAX;
return... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253115/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253115/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>
#incl... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253166/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253166/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;
int head, tail, n;
P Q[LEN];
void enqueue(P x)
{
Q[tail] = x;
tail = (tail+1)%LEN;
}
P dequeue(void)
{
P x;
x = Q[head];
head = (head+1)%LEN;
return x;
}
int min(int a,int b)
{
return a < b ?... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253209/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253209/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 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==n) tail=0;
else tail++;
}
P dequeue(){
P x;
x=Q[head];
if(head==n) head=0;
else head++;
return x;
}
int main(){
int elaps = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253252/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253252/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 100000
typedef struct{
char name[10];
int t;
}P;
P Q[LEN];
int head,tail,n;
void enqueue(P);
P dequeue();
int main(){
int elaps = 0;
int i,q;
P u;
scanf("%d %d",&n,&q);
for(i = 0;i < n;i++)
scanf("%s %d",Q[i].name,&Q[i].t);
tail = n;
while(head != tail){
u = dequeue();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253296/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253296/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 N 100000
typedef struct {
char name[10];
int time; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253339/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253339/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>
typedef struct pp {
int time;
char name[100];
} P;
P Q[100001];
int head, tail;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % 100001;
}
P dequeue() {
P x;
x = Q[head];
head = (head + 1) % 100001;
return x;
}
int min(int a, int b) {
if (a <= b) {
return a;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253382/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253382/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 { i32, [1... |
#include<stdio.h>
int i,j,l;
char a[50][51];
int x[125000],min=150000;
int n,m,k,cntW,cntB,cntR,cnt=0;
#define I for(i=0;i<n;i++)
#define Wp cntW++
#define Bp cntB++
#define Rp cntR++
int main(void){
scanf("%d %d",&n,&m);
I{
x[i]=0;
}
I{
scanf("%s",a[i]);
}
for(i=0;i<n-2;i++){
for(j=i+1;j<n-1;j++){
for(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253425/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253425/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"
@min = dso_local local_unna... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
int main() {
int n;
char s[10001];
char t[10001];
scanf("%d %s", &n, s);
for (int i = 0; i < strlen(s); i++) {
char c = s[i];
if (c + n >= 91) {
c += n - 26;
} els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253469/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253469/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>
#include<math.h>
#define loop(i, l, r) for(i=l; i<r; i++)/*Instead of function, (for).*/
#define rep(i,r) for(i=0; i<r; i++)
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) < (b) ? (a) : (b))
typedef long long int lli;
/*Return Combination ,(nCr)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253511/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253511/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,i,t;
char c[10000];
scanf("%d",&n);
scanf("%s",c);
for(i=0;i<strlen(c);i++)
{
t= c[i]+n;
if(t>90)
{
c[i]=64+(t-90);
}
else c[i]=c[i]+n;
}
printf("%s\n",c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253562/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;
char s[10001];
scanf("%d %s",&n,s);
for (int i=0; s[i] != '\0'; i++) {
s[i] += n;
if (s[i] > 'Z')
s[i] -= 26;
}
printf("%s\n",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253605/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()
{
char str[10000];
int n,s,i;
scanf("%d",&s);
scanf("%s",str);
n=strlen(str);
for(i=0;i<n;i++)
{
if(str[i] <= 'Z'-s)
printf("%c",str[i]+s);
else
printf("%c",str[i]+s-26);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253656/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253656/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; char s[10000 + 1];
scanf("%d%s", &n, s);
for (char *ch = &s[0]; *ch != '\0'; ++ch) {
if (*ch + n > 'Z')putchar('A' + (n - ('Z' - *ch + 1)));
else putchar(*ch + n);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253706/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253706/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 <stdbool.h>
#define clr(ar) memset(ar, 0, sizeof(ar))
#define read() freopen("lol.txt", "r", stdin)
int n;
char str[10];
char* dp[] = {"vaporeon", "jolteon", "flareon", "espeon", "umbreon", "leafeon", "glaceon", "sylveon"};
int main(){
int i, j;
while (scanf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25375/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25375/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 i, j, N, M, C, A[21][21], B[21];
scanf("%d %d %d", &N, &M, &C);
for (j = 1; j <= M; j++) scanf("%d", &(B[j]));
for (i = 1; i <= N; i++) {
for (j = 1; j <= M; j++) scanf("%d", &(A[i][j]));
}
int count = 0, sum;
for (i = 1; i <= N; i++) {
sum = C;
for (j = 1; j <= M; j+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253807/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253807/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, m, c;
scanf("%d%d%d", &n, &m, &c);
int b[m], a[n][m];
int i, j;
int ans = 0, sum = 0;
for (i = 0; i < m; i++) {
scanf("%d", &b[i]);
}
for (i = 0; i < n; i++) {
sum = c;
for (j = 0; j < m; j++) {
scanf("%d", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253850/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253850/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], i, j, a[20][20], out[20], cnt;
scanf("%d%d%d", &n, &m, &c);
for (i = 0; i < m; i++) scanf("%d", &b[i]);
for (i = 0; i < n; i++) for (j = 0; j < m; j++) scanf("%d", &a[i][j]);
for (i = 0; i < n; i++) out[i] = c;
for (i = 0; i < n; i++) for (j = 0; j < m; j++) out... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253894/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253894/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;
scanf("%d %d %d",&n,&m,&c);
int b[m],a[n][m];
int count = 0;
for(int i = 0;i < m;i++)
scanf("%d ",&b[i]);
for(int j = 0;j < n;j++){
for(int i = 0;i < m;i++){
scanf("%d ",&a[j][i]);
}
}
for(int j = 0;j < n;j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253937/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,x;
int count,count2;
int NMC[3];
int B[20];
int A[256][256];
count = 0;
count2 = 0;
for(i = 0; i < 3; i++){
scanf("%d",&x);
NMC[i] = x;
}
for(i = 0; i < NMC[1]; i++){
scanf("%d",&x);
B[i] = x;
}
for(i = 0; i < N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253980/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[20][20], B[20], i, j, sum, accepted = 0;
scanf("%d%d%d", &N, &M, &C);
for (j = 0; j < M; j++) {
scanf("%d", &B[j]);
}
for (i = 0; i < N; i++) {
for (j = 0; j < M; j++) {
scanf("%d", &A[i][j]);
}
}
for (i ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254022/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, M, C;
scanf("%d%d%d", &N, &M, &C);
int B[20];
for(int i = 0; i < M; i++) {
scanf("%d", &B[i]);
}
int Num = 0;
for(int i = 0; i < N; i++) {
int Ans = C;
for(int j = 0; j < M; j++) {
int A;
scanf("%d", &A);
Ans += A * B[j];
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254073/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254073/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 argc, char const *argv[]) {
int N,count=0,countA=0,countB=0,i,countBA=0;
char array[12];
scanf("%d", &N);
while (N > 0) {
scanf("%s",array);
for (i = 0; array[i+1] != '\0'; i++) {
if (array[i] == 'A') {
if (array[i+1] == 'B') {
count++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254116/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254116/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 num[4]={0};
for(int i=0;i<4;i++){
scanf("%d",&num[i]);
}
if(num[0]!=num[3]){
printf("0\n");
return 0;
}
else if(num[0]==0 && num[3]==0 && num[2]!=0){
printf("0\n");
return 0;
}
else{
printf("1\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25416/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25416/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 cnt[4];
int out=1;
scanf("%d %d %d %d",&cnt[0],&cnt[1],&cnt[2],&cnt[3]);
if(cnt[0]!=cnt[3]) out=0;
if((cnt[0]==0)&&(cnt[3]==0)&&(cnt[2]>0)) out=0;
printf("%d\n",out);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25421/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25421/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() {
long x;
scanf("%ld",&x);
for(int a = 0; a <= 200; a++) {
for(int b =- 200; b <= 200; b++) {
if(a * a * a * a * a - b * b * b * b * b == x) {
printf("%d %d",a, b);
return 0;
}
}
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254253/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>
#include<math.h>
typedef long long ll;
int main()
{
int x,flag=0;
scanf("%d",&x);
ll a=0,b=0;
ll c,d;
double y;
int k;
while(flag==0)
{
k=0;
y=x;
c=a*a*a*a*a;
y=y-c;
if(y<0)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254297/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 q,w,e,r;
scanf("%d%d%d%d",&q,&w,&e,&r);
if(q!=r) printf("0");
else if (q==0&&e!=0) printf("0");
else printf("1");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25434/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<math.h>
int N,M,i,j,f[21];
double L[21],A[21],B[21],r=0;
void dfs(int d,int p,int q)
{
double t;
if(q==0)
{
for(i=t=0;i<d-1;i++)
for(j=i+1;j<d;j++)
{
t+=(L[f[i]]-L[f[j]])*(L[f[i]]-L[f[j]])+
(A[f[i]]-A[f[j]])*(A[f[i]]-A[f[j]])+
(B[f[i]]-B[f[j]])*(B[f[i]]-B[f[j]]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254398/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"
@r = dso_local local_unname... |
#include <stdio.h>
#include <math.h>
int main(void)
{
int x, h;
double S;
while (1){
scanf("%d%d", &x, &h);
if (x == 0 && h == 0){
break;
}
S = x * sqrt((4 * h * h) + (x * x)) + (x * x);
printf("%lf\n", S);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254440/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 x, h;
while(scanf("%d%d", &x, &h), x||h){
// sqrt(x^2+4*h^2)*x+x^2
printf("%f\n", sqrt(x*x+4*h*h)*x+x*x);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254491/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254491/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 x, h;
double square, tri;
while (scanf("%d %d", &x, &h) != EOF) {
if (x == 0 && h == 0) {
break;
} else {
square = pow(x, 2);
tri = 0.5 * x * sqrt(pow(h, 2) + (square / 4));
printf("%f\n", square + 4 * tri);
}
}
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254541/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 SQR(x) ((x)*(x))
int cmp(const void *a,const void *b){
return *(double *)a-*(double *)b;
}
int main(void){
int n,r,i;
double c[3];
for(i=0;i<3;i++){
scanf("%lf",&c[i]);
}
if(!(c[0]+c[1]+c[2]))
return 0;
qsort(c,3,sizeof(double),c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254606/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 x,y,z,loop,xr,yr,zr,i,data;
while(1){
scanf("%d %d %d",&x,&y,&z);
if(x==0 && y==0 && z==0){
break;
}
xr=sqrt(x*x+y*y);
yr=sqrt(y*y+z*z);
zr=sqrt(z*z+x*x);
scanf("%d",&loop);
for(i=0;i<loop;i++){
scanf("%d",&data);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254664/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){
double a[3], b[3], c[3], d[3], e[3], f[3];
double x, y;
while (scanf("%lf %lf %lf %lf %lf %lf",&a[0],&b[0],&c[0],&d[0],&e[0],&f[0]) != EOF){
a[1] = a[0] * e[0];
b[1] = b[0] * e[0];
c[1] = c[0] * e[0];
d[1] = d[0] * b[0];
e[1] = e[0] * b[0];
f[1] = f[0] * b[0];
x ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254721/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){
float a,b,c,d,e,f;
float x,y;
// a((f - ey) / d) + by = c
//y(- ae +bd) =cd -af
for(;;){
if(scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f)!= 6)
break;
if(a == 0){
y = c / b;
x = (f - e*(c/b)) / d;
}else{
y = (c*d - a*f) / (b*d - a*e)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254765/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254765/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) {
double a,b,c,d,e,f;
double x,y;
while(!feof(stdin)) {
scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
if(feof(stdin))break;
x=(c*e-f*b)/(a*e-d*b);
y=(c*d-f*a)/(b*d-e*a);
if(x>-0.001 && x<0.001)x=0;
if(y>-0.001 && y<0.0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254808/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,c,d,e,f;
while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)!=EOF){
double x = (double)(c*e-b*f)/(a*e-b*d);
double y = (double)(c*d-f*a)/(b*d-a*e);
//it is very important of this below to anser collectly
if(x == -0.000){
x = 0.000;
}
if(y == -0.000){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254851/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
#include <stdio.h>
#include <math.h>
int main(void)
{
double a, b, c, d, e, f, x, y;
double b2, c2, e2, f2;
while (scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF){
b2 = b * d;
c2 = c * d;
e2 = e * a;
f2 = f * a;
y = ((c2 - f2) / (b2 - e2));
x = (c - b ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254895/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(){
double a,b,c,d,e,f;
double x,y;
while (scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f) != EOF) {
x=(c*e-b*f)/(a*e-b*d);
y=(c*d-a*f)/(b*d-a*e);
if(-0.0005<x && x<=0)
x=0;
if(-0.0005<y && y<=0)
y=0;
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254938/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254938/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() {
double a, b, c, d, e, f;
double x, y;
while (scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF) {
x = ((c*(b*d - a*e)) - (b*(c*d - a*f))) / (a*(b*d - a*e));
y = (c*d - a*f) / (b*d - a*e);
if (x == 0) x = 0;
if (y == 0) y = 0;
//printf("%f %f %f %f %f %f\n", a, b,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254981/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254981/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(){
double a,b,c,d,e,f,x,y;
double ansx,tmp,ansy;
double a1,a2,a3,a4,a5,a6,x1,y1;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
tmp=a,a1=a,a2=b,a3=c,a4=d,a5=e,a6=f,a*=d,b*=d,c*=d;
d*=tmp,e*=tmp,f*=tmp;
x=b-e;
y=c-f;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255023/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255023/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(){
double a,b,c,d,e,f;
double ans,ans2;
while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF){
ans=(e*c-b*f)/(a*e-b*d);
ans2=(c*d-a*f)/(b*d-a*e);
if((e*c-b*f)==0){ ans=0.000 ; }
else if((c*d-a*f)==0){ ans2=0.000 ;}
printf("%.3f %.3f\n",ans,ans2);
}
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255081/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255081/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){
float a,b,c,d,e,f;
float x,y;
while(scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)==6){
x=(e*c-b*f)/(e*a-b*d);
if(x==-0.0) x=0.0;
y=(d*c-a*f)/(d*b-a*e);
if(y==-0.0) y=0.0;
printf("%.3f %.3f\n",x,y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255131/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>
double a1,b1,c1,a2,b2,c2,delta,x,y;
int main(){
while(scanf("%lf%lf%lf%lf%lf%lf",&a1,&b1,&c1,&a2,&b2,&c2) != EOF){
delta = a1*b2 - b1*a2;
x = (c1*b2 - b1*c2)/delta;
y = (a1*c2 - a2*c1)/delta;
x = floor(10000*x+0.5)/10000;
y = floor(10000*y+0.5)/10000;
printf("%.3lf %.3lf\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255182/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 xs[2], ys[2], eqs[2];
float x, y;
while (~scanf("%d %d %d %d %d %d", xs, ys, eqs, xs + 1, ys + 1, eqs + 1)){
x = 1.*(eqs[0] * ys[1] - eqs[1] * ys[0]) / (xs[0] * ys[1] - xs[1] * ys[0]);
y = 1.*(eqs[1] * xs[0] - eqs[0] * xs[1]) / (xs[0] * ys[1] - xs[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255225/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)
{
double a,b,c,d,e,f,x,y;
while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f) != EOF)
{
y=(c*d-a*f)/(b*d-a*e);
x=(c*e-b*f)/(a*e-b*d);
if(x==0)
x=0.0;
if(y==0)
y=0.0;
printf("%.3lf %.3lf\n",x,y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255283/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(){
double a,b,c,d,e,f,i,x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF)
{
x = (f-e/b*c)/(d-e/b*a);
y = (f-d/a*c)/(e-d/a*b);
if(x == 0) x = 0;
if(y == 0) y = 0;
printf("%.3f %.3f\n",x,y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255333/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() {
double a, b, c, d, e, f;
double x, y;
while (scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF) {
y = (c*d-a*f) / (b*d-a*e);
x = (c-b*y)/a;
printf("%.3lf %.3lf\n", x, y);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255377/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255377/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 f;
scanf("%d",&f);
for(int _=0;_<f;_++){
int a,b,n,i=1,c;
scanf("%d %d %d",&a,&b,&n);
if(n%3==0) printf("%d\n",a);
else if(n%3==1) printf("%d\n",b);
else printf("%d\n",a^b);}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25542/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 min(int a, int b){
if(a<b)return a;
else return b;
}
int main(void){
int n, k;
scanf("%d", &n);
scanf("%d", &k);
int ans=0;
for(int i=0; i<n; i++){
int x;
scanf("%d", &x);
int a=x*2;
int b=(k-x)*2;
ans+=min(a, b);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255463/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255463/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 <stdbool.h>
#include <string.h>
/*以下便利なマクロを定義する。*/
#define rep(i, min, max) for(i=min; i<=max; i=i+1)
#define if_forall(i, min, max, prop)\
\
rep(i, min, max)\
{\
if(!(prop))\
{\
break;\
}\
}\
\
if(i==max+1)\
#define if_exists(i, m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255506/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 t;
scanf("%d",&t);
while(t)
{
int a,b ,n;
scanf("%d%d%d",&a,&b,&n);
if(n%3==0)
printf("%d\n",a);
else if(n%3==1)
printf("%d\n",b);
else
printf("%d\n",a^b);
t--;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25555/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25555/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 <ctype.h>
// program by Mircea Rebengiuc
// written for codeforces round 739D3
// written on 2021.08.18
int frecv[26];
int banned[26 + 1];
char input[500000 + 1 + 1];
char input2[64000000 + 1 + 1];// just in case
char order[26];
int main(){
int t, n, i, j, k, nch, len;
for( scanf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25560/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<stdbool.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#define rep(i,n) for(int i=0; i <(n); i++)
int main(){
int n;
long a[100000];
scanf("%d",&n);
rep(i,n){
scanf("%lld",&a[i]);
}
int x=0,y=0,z=0;
rep(j,n){
if(a[j]%4==0){
x++;
}else if(a[j]%2==0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255643/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255643/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>
#include <stdbool.h>
#include <math.h>
/*ソートの時に使う
int sort(const void *a, const void *b){
return *(int*)a-*(int*)b ;
}
qsort (data,sizeof(data),sizeof(int),sort);
*/
int main(void){
int n;
scanf("%d",&n);
int a[n],count1=0,count2=0,count4... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255687/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>
void testcase();
int main() {
int t;
scanf("%d", &t);
for (int i = 0; i < t; i++) {
testcase();
}
return 0;
}
void testcase() {
long long k;
scanf("%lld", &k);
double sqrtK = sqrt((double)k);
long long ceilSqrtK = ceil(sqrtK);
long ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25573/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25573/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 <limits.h>
int min(int a, int b){
if(a < b)return a;
return b;
}
int main() {
int H, N;
scanf("%d %d", &H, &N);
int A[N], B[N];
for(int i = 0;i < N;i++){
scanf("%d %d", &A[i], &B[i]);
}
int dp[H + 1];
dp[0] = 0;
for(int i = 1;i <= H;i++){
dp[i] = INT_MAX;
for(int j = 0;j < ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255780/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255780/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.