Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#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?... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252267/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 length 100000
int head,tail;
typedef struct {
char name[100];
int t;
}QU;
QU Q[length];
void enque(QU x){
Q[tail]=x;//?¨?????????????????????£???????????????????°?????????\
tail=(tail+1)%length;
}
QU deque(){
QU x =Q[head];
head=(head+1)%length;
return x;
}
int main(){
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252317/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252317/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.QU = type { [100 x ... |
#include <stdio.h>
#define MAX_NAME_LENGTH 10+1
#define MAX_PROCESS 100000
typedef struct{
char name[MAX_NAME_LENGTH];
int time;
}Process;
Process Q[MAX_PROCESS];
int head=0,tail=0;
//?????\??????????´?x?????????????????¢??°
void enqueue(Process x){
Q[tail]=x;
if(tail+1 == MAX_PROCESS){//????????°??... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252368/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252368/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 MAX_LEN 100000
typedef struct {
char name[11];
int val;
} dic;
dic arr[MAX_LEN];
int head, tail;
int enqueue(dic x){
if(tail+1 == head){
printf("OverFlow\n");
return 0;
}
arr[tail] = x;
if(tail+1 == MAX_LEN){
tail=0;
}else{
tail... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252410/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252410/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.dic = type { [11 x ... |
#include<stdio.h>
#define MAX_i 88888
typedef struct process{
char name[11];
int time;
}pr;
void enqueue(pr x);
pr dequeue();
pr p[MAX_i];
int head,tail;
int main(void){
int n,q,i,sum=0;
pr x;
scanf("%d %d",&n,&q);
for(i=0;i<n;i++){
scanf("%s %d",p[i].name,&p[i].time);
}
h... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252454/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252454/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 : b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252498/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252498/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 pp{
char name[100];
int t;
}P;
P Q[l];
int head,tail,n;
void enqueue(P x){
Q[tail] = x;
tail =(tail +1)%l;
}
P dequeue(){
P x = Q[head];
head = (head + 1) %l;
return x;
}
int min(int a, int b){
return a<b ? a : b ;
}
int main(){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252548/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 <stdbool.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int head,tail,n;
void initialize();
bool isEnpty();
bool isFull();
void enqueue(P);
P dequeue();
int main(){
int elaps = 0, c;
int i, q;
P u;
scanf("%d %d", &n, &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252599/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252599/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 initialize(void);
int isEmpty(void);
int isFull(void);
void enqueue(P);
P dequeue(void);
P Q[LEN+1];
int head, tail, n;
void initialize(){
head = 0;
tail = 0;
}
int isEmpty(){
if(head == tail)
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252649/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252649/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 <math.h>
#include <stdlib.h>
#include <string.h>
//||
//\n
int cmpfunc (const void * a, const void * b)
{
return ( *(int*)b - *(int*)a );
}
// qsort(values, 5, sizeof(int), cmpfunc);
int main()
{
int na, nb, k, m, a[100009], b[100009], i, j, n;
scanf("%d %d", &na, &nb);
s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2527/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>
int main(void) {
float b,c,d,sum=0,k;
int a;
int i;
scanf("%d%f",&a,&b);
for(i=1;i<=a;i++)
{
scanf("%f",&k);
sum=sum+k;
}
float b1=b-0.5;
if(((b1*a)-sum)>=0)
{
float ans=((b1*a)-sum)/(b-b1);
int q=(int)ans;
printf("%d",q);
}
else
{
printf("0");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25275/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25275/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
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 <... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252793/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 <stdbool.h>
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
typedef struct {
char name[10];
int time;
} Process;
typedef struct {
Process *que;
int front;
int rear;
int size;
int num;
} Que;
bool initQue(Que *q, int size) {
if((q->que = mal... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252836/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.Que = type { ptr, i... |
#include <stdio.h>
int main(void) {
// your code goes here
int n,k,i;
scanf("%d %d",&n,&k);
int a,tot=0;
for(i=0;i<n;i++)
{
scanf("%d",&a);
if(a<k-1){tot+=2*(k-1-a)+1;}
else if(a==k){tot--;}
else tot++;
}
if(tot<0){printf("0\n");}
else printf("%d\n",tot);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25288/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
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;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252922/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252922/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>
int main()
{
int comp,tim,i,ptim=0,tima[50000],end=0,endc=0,timb[50000],count=0,flag=0;
char p1[10],pa[50000][10],pb[50000][10];
scanf("%d%d",&comp,&tim);
endc=comp;
//データの格納
for(i=0;i<comp;i++)
{
scanf("%s%d",pa[i],&tima[i]);
}
//処理
while(comp/2>... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252966/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252966/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 QSIZE 100005
typedef struct pp{
char name[100];
int time;
} P;
P queue[QSIZE];
int head=0,tail=0;
void enqueue(P y)
{
int next=(tail+1)%QSIZE;
if(next==head){
printf("Queue overflow\n");
exit(2);
}
queue[tail]=y;
tail=next;
}
P dequeue(void)
{
P x;
if(head ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253008/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253008/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) {retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253051/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 qq
{
char name[100];
int time;
}Que;
void enqueue(Que x);
Que dequeue();
Que Q[LEN];
int head, tail, n;
void enqueue(Que x)
{
Q[tail] = x;
tail = (tail +1) % LEN;
}
Que dequeue()
{
Que x = Q[head];
head = (head + 1)% LEN;
return x;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253095/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253095/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 ... |
// id: ALDS1_3_B
// CPU: 00:01sec Memory: 3348KB
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define NAME_LEN 10
struct Process;
struct Node;
struct Queue_type;
typedef struct Process Item;
typedef struct Node *PtrToNode;
typedef PtrToNode Position;
typedef struct Queue_type *Queue;
struct Process {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253138/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253138/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 <... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253181/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253181/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 N 100005
#define num 100
typedef struct aa
{
char name[num];
int t;
} A;
A data[N];
int head,tail,n;
void enqueue(A x){
data[tail]=x;
tail=(tail+1)%N;
}
A dequeue(){
A x=data[head];
head=(head+1)%N;
return x;
}
int min(int a,int b){return a<b?a:b;}
int main(){
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253224/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253224/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.aa = type { [100 x ... |
#include<stdio.h>
#include<stdlib.h>
#define LEN 200000
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN+1];
int head = 1, tail=1, n;
void enqueue(P x){
Q[tail] = x;
tail++;
}
P dequeue(){
head++;
return Q[head-1];
}
int main(){
int elaps = 0, remain = 0, time = 0;
int i, q;
P u;
scanf("%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253275/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253275/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+1];
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(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253318/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253318/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=0, tail=0, n;
void enqueue(P x){
if(head == (tail)%LEN){
printf("1\n");
exit(1);
}
Q[tail]=x;
if(tail == LEN)tail = 0;
else tail++;
}
P dequeue(){
P x;
if(head == ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253361/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253361/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>
//#include <stdbool.h>
//#include <limits.h>
//#include <math.h>
#define MOD 1000000007
#define N 2000005 //size of array
long fac[N], inv[N], finv[N];
void com_init()
{
fac[0] = 1;
fac[1] = 1;
finv[0] = 1;
finv[1] = 1;
inv[1] = 1;
for (int i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253404/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253404/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"
@fac = dso_local local_unna... |
#include<stdio.h>
#include<string.h>
int main(){
int n;
char s[10010];
scanf("%d %s",&n,s);
int len=strlen(s);
for(int i=0;i<len;i++){
int x=s[i]-'A';
x=(x+n)%26;
putchar('A'+x);
}
putchar('\n');
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253462/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253462/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 n,n0,i;
char s[101];
int main() {
scanf("%d", &n);
scanf("%s", s);
for(n0=0,i=0;s[i]!='\0';i++)
if(s[i]=='0') n0++;
if(2*n0!=n)
printf("1\n%s\n",s);
else
printf("2\n%c %s\n",s[0], s+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25352/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25352/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>
#include <stdlib.h>
int main()
{
int n,i=0;
char str[10001];
scanf("%d", &n);
scanf("%s", str);
if(n>0)
{
while(str[i]!='\0')
{
if(str[i]+n>='A' && str[i]+n<='Z')
{
str[i]=str[i]+n;
}
else
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253563/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];
scanf("%d", &N);
scanf("%s", S);
const int over = 'Z'-'A'+ 1;
for(int i = 0; i < strlen(S); i++) {
S[i] += N;
if (S[i] > 'Z') {
S[i] -= over;
}
}
printf("%s", S);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253606/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 total_one=0,total_zero=0,n,i,j,k;
scanf("%d",&n);
char str[n+1];
for( i=0;i<n+1;i++)
{
scanf("%c",&str[i]);
if(str[i]=='0')
{
total_zero++;
}
else if(str[i]=='1')
{
total_one... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25365/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25365/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>
int main()
{
long long int n = 0, z = 0, d = 0, a = 1, m = 1, v = 0, c = 0, b = 0;
scanf("%I64d", &n);
char X[n];
scanf("%s", X);
while(c<n){if(X[c] == '1'){v = v + 1;}if(X[c] == '0'){b = b + 1;}c = c + 1;}
if(v != b){printf("1\n");printf("%s", X);}
if(v == b){printf("2\n");if(X[0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25370/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25370/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>
int main(void) {
int N, i;
char S[10005];
scanf("%d%s", &N, S);
for (i=0; i<strlen(S); i++) {
S[i]+=N;
if (S[i]>'Z') S[i]-=26;
}
printf("%s", S);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253743/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[22];
for(int i=0; i<m; i++) scanf("%d", &b[i]);
int ans = 0;
for(int i=0; i<n; i++){
int sum = 0;
for(int j=0; j<m; j++){
int t; scanf("%d", &t);
sum = sum + t * b[j];
}
if(sum + c > 0) ans++;
}
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253808/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], cnt = 0, sum;
scanf("%d%d%d", &N, &M, &C);
int i, j;
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++) {
sum = C;
for (j = 0; j < M; j++) {
sum += A[i][j] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253851/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];
for(int i = 0;i < m;i++){
scanf("%d", &b[i]);
}
int a[n][m];
for(int i = 0;i < n;i++){
for(int j = 0;j < m;j++){
scanf("%d", &a[i][j]);
}
}
int count = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253895/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(void){
int N,M,C;
scanf("%d %d %d",&N,&M,&C);
int i,j;
int **A, *B;
B = (int*)malloc(sizeof(int)*M);
A = (int**)malloc(sizeof(int*)*N);
for(i=0;i<N;i++){
A[i] = (int*)malloc(sizeof(int)*M);
}
for(i=0;i<M;i++){
scanf("%d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253938/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253938/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 M;
int C;
scanf("%d %d %d",&N, &M, &C);
int B[21];
int i;
for ( i = 0; i < M; ++i) {
scanf("%d", &B[i]);
}
int A[21][21];
int j;
for ( i = 0; i < N; ++i) {
for (j = 0; j < M; ++j) {
scanf("%d", &A[i][j]);
}
}
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253989/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253989/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 N 20
int main(void) {
int n, m, c, sum, num, cnt = 0;
int a[N];
scanf("%d %d %d", &n, &m, &c);
for (int i = 0; i < m; i++) {
scanf("%d", &a[i]);
}
for (int i = 0; i < n; i++) {
sum = 0;
for (int j = 0; j < m; j++) {
scanf("%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254030/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254030/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, a, b[20];
int n, m, ans, i, j;
int now;
int main(){
scanf("%d%d%d", &n, &m, &c);
for(i=0; i<m; i++){
scanf("%d", b+i);
}
for(j=0; j<n; j++){
now = c;
for(i=0; i<m; i++){
scanf("%d", &a);
now += a * b[i];
}
ans += (now > 0);
}
printf("%d\n", ans);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254074/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254074/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_254117/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254117/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 id, solved, penalty;
} Team;
int compare(const void *a, const void *b) {
int t;
t = ((Team *)b)->solved - ((Team *)a)->solved;
if (t)
return t;
else {
t = ((Team *)a)->penalty - ((Team *)b)->penalty;
if (t)
return t;
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254175/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254175/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 = type { i32, ... |
#include <stdio.h>
int main()
{
long long int x,i,j;
scanf("%lld",&x);
for(i=-200;i<=200;i++)
for(j=-200;j<=200;j++){
if(x==33)
{
printf("2 -1\n");
return 0;
}
if(i*i*i*i*i-j*j*j*j*j==x){
printf("%lld... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254225/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 int FiveFactorical(long long int r){
return r * r * r * r * r;
}
int main(void){
long long int X,i,j,ans;
scanf("%lld",&X);
for(i = -500;i <= 500;i++){
for(j = -500;j <= 500;j++){
if(FiveFactorical(i) - FiveFactorical(j) == X){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254269/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254269/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(){
long int X,A,B,PB,Psum,Nsum,y,i,j;
scanf("%ld",&X);
for(i=1;i<150;i++){
y=i*i*i*i*i;
for(j=0;j<i+1;j++){
PB=j*j*j*j*j;
Psum=y+PB;
Nsum=y-PB;
if(Psum==X){
A=i;
B=j*(-1);
break;
}
else if(Nsum==X){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254311/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254311/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> // printf(), scanf()
#include <stdbool.h>
#define MAX_M 7
#define MAX_N 1000
int m;
int a[MAX_M];
int b[MAX_M];
int
solve(int n)
{
int dp[MAX_M + 1][MAX_N + 1];
for (int i = 0; i <= m; ++i)
{
for (int j = 0; j <= n; ++j)
dp[i][j] = 0;
}
dp[0][0] = 1;
for (int i = 0; i < m; ++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254355/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254355/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"
@m = dso_local global i32 0... |
#include <stdio.h>
int main(void){
while(1){
//input
int b;
scanf("%d", &b);
//scanf("%d", &b) // AOJではscanf_s()が使えないことに注意
if(!b) break;
//processing
//できるだけ多くのフロアを借りたい -> 安い部屋から順。
int high=1; //借りるフロアの中での最上階
int low=1; //借りるフロアの中での最下層
int sum=1; //lowからhighまでの和
while(1){
if(sum == b) brea... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254405/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254405/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, h;
double a, sh;
while (scanf("%d %d", &x, &h), x != 0 || h != 0){
a = x * x;
sh = (x / 2.0) * (x / 2.0) + h * h;
a += (x * sqrt(sh) / 2) * 4;
printf("%f\n", a);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254456/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254456/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 argc,char* argv[]){
for(;;){
int x,h;
double S,len,side;
scanf("%d",&x);
scanf("%d",&h);
if(x == 0 && h == 0){
break;
}
S = x*x;
len = sqrt((double)(x*x)/4 + h*h);
side = len*x*2;
printf("%.6lf\n",S + side);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254506/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<stdbool.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#define MOD1 1000000007
#... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254571/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254571/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,n,max,w;
while(scanf("%d %d %d",&a,&b,&c),a||b||c){
max=1000000000;
if(max>a*a+b*b)
max=a*a+b*b;
if(max>b*b+c*c)
max=b*b+c*c;
if(max>a*a+c*c)
max=a*a+c*c;
scanf("%d",&n);
while(n-->0){
scanf("%d",&w);
if(max<4*w*w)
printf("OK\n");
else printf("NA\n");
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254629/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254629/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 square[3] = {0};
int circle[9999] = {0};
int n, a, b, c, i;
while (scanf("%d %d %d", &a, &b, &c) != EOF)
{
if (a != 0)
{
if (a >= b && a >= c)
{
square[0] = b;
square[1] = c;
square[2] = a;
}
else if (b >= a && b >= c)
{
square[0] = a;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254672/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(EOF!=scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f) ){
y = (c*d-a*f)/(b*d-a*e);
x = (c - b*y)/a;
//四捨五入
printf("%.3f %.3f\n", x, y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254722/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254722/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(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f) !=EOF)
{
y=(d*c-a*f)/(d*b-a*e);
x=(c-b*y)/a;
printf("%.3lf %.3lf\n",x,y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254766/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254766/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>
void solve(int a, int b, int c, int d, int e, int f, double *x, double *y);
int main(int argc, char* argv[])
{
int a, b, c, d, e, f;
while (scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f) != -1) {
double x, y;
solve(a, b, c, d, e, f, &x, &y);
printf("%.3lf %.3lf\n", x, y);
}
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254809/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254809/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>
float fourfive(float f);
int main(void){
float a,b,c,d,e,f;
float aa,bb,cc,dd,ee,ff;
float x,y;
float tmp1,tmp2;
int xx, yy;
while(1){
a = 2000;
scanf("%f %f %f %f %f %f", &a, &b, &c, &d, &e, &f);
if(a == 2000)break;
tmp1 =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254852/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>
int main () {
float d[6];
// p c d q
// 0 a 1 b 2 c 3 d 4 e 5 f
while(scanf("%f %f %f %f %f %f", &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != EOF ) {
printf("%.3f %.3f\n",
floor(((d[2] * d[4] - d[1] * d[5])... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254896/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254896/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(a*e-b*d==0||b*d-a*e==0){
return 1;
}
if(x==-0)
x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254939/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>
int isPerfectSquare(int n){
if(n == 1)
return 1;
float root;
root = sqrt(n);
n = (int)root;
if(root == (float)n)
return 1;
return 0;
}
int main(){
int t,**a,*size;
scanf("%d",&t);
a = (int **)mall... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25499/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25499/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)
{
double a, b, c, d, e, f;
double A, B, C, D;
double x, y;
while(scanf("%lf%lf%lf%lf%lf%lf", &a, &b, &c, &d, &e, &f)!=EOF) {
A=c*e-b*f; B=a*e-b*d;
C=c*d-a*f; D=b*d-a*e;
x=A/B; y=C/D;
if(x==-0) x=0;
if(y==-0) y=0;
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255031/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255031/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 EPS (0.0001)
int main(void)
{
double a, b, c, d, e, f;
while (scanf("%lf%lf%lf%lf%lf%lf", &a, &b, &c, &d, &e, &f) != EOF){
printf("%.3f %.3f\n",(c * e - f * b) / (a * e - d * b) + EPS, (a * f - d * c) / (a * e - d * b) + EPS);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255097/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255097/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>
double ro (double d){
int minus = 0;
if (d < 0){
d *= -1;
minus = 1;
}
d = ((double)(int)(1000*d + 0.5)) / 1000;
if (minus) d *= -1;
return d;
}
int main(void) {
int a, b, c, d, e, f;
while (scanf ("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f) != EOF){
printf ("%.3f %.3f\n",
ro (((... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255147/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255147/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,f,x,y,iptr;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF) {
y=(a*f-c*d)/(a*e-b*d);
x=(c-b*y)/a;
x=(int)(x*10000);
x+=modf(x,&iptr)>=0.5?1:0;
y=(int)(y*10000);
y+=modf(y,&iptr)>=0.5?1:0;
x/=10000;
y/=10000;
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255198/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, e, f;
double det, x, y;
while (scanf("%d %d %d %d %d %d",
&a, &b, &c, &d, &e, &f) != EOF) {
det = a * e - b * d;
x = (e * c + -b * f) / det;
y = (-d * c + a * f) / det;
printf("%.3f %.3f\n", x + 0, y + 0);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255255/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255255/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[100],b[100],c[100],d[100],e[100],f[100],count=0,i;
double x[100],y[100];
while(scanf("%d %d %d %d %d %d",&a[count],&b[count],&c[count],&d[count],&e[count],&f[count]) != EOF){
count++;
}
for(i=0;i<count;i++){
if(d[i]!=0){
y[i]=1.0*(c[i]*d[i]-a[i]*f[i])/(b[i]*d[i]-a[i]*e[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255299/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255299/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 myround(double src, int n);
int main(void) {
int A1, B1, E1, A2, B2, E2;
double x, y;
while(scanf("%d %d %d %d %d %d", &A1, &B1, &E1, &A2, &B2, &E2) == 6) {
if(A1 == 0) {
y = myround(1.0*E1/B1, -5);
x = myround(1.0*(E2-B2*y)/A2, -5);
} else if(B1 == 0) {
x =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255341/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255341/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... |
/*
* 0004_Simultaneous_Equation.c
*
* Created on: 2019/06/09
* Author: nagashima
*/
#include <stdio.h>
#include <math.h>
int main(void){
double x,y;
double a,b,c,d,e,f;
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("%.3f %.3f\n",x,y);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255385/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255385/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 rep(i,n) for(int i=0;(i)<(n);(i)++)
#define min(x,y) ((x)<(y)?(x):(y))
#define N 10000000
#define INF 99999999
typedef struct{
int pos;
int rest;
}Data;
Data queue[N];
int head,num;
void enqueue(int pos,int rest){
if(num<N){
queue[(head+num)%N].pos=pos;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255435/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255435/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>
int CB(int *x,int K){
if(abs(*x)<abs(K-*x)){
return 2*abs(*x);
}else{
return 2*abs(K-*x);
}
}
int main(){
int N,K;
scanf("%d%d",&N,&K);
int i;
int x[101];
for(i=0;i<N;i++){
scanf("%d",&x[i]);
}
int count=0;
for(i=0;i<N;i++){
count+=CB(&x[i],K);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255479/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255479/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<limits.h>
#include<math.h>
int main(void){
int N, K;
scanf("%d %d", &N, &K);
int temp, i;
int distance = 0;
for(i=0; i<N; i++) {
scanf("%d", &temp);
if(temp < (double)K / 2.0) {
distance += temp;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255521/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255521/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 min(int a, int b) {
if (a < b) {
return a;
}
return b;
}
int main(int argc, char const *argv[])
{
int n, k;
scanf("%d %d", &n, &k);
int dist = 0;
for (int i = 0; i < n; ++i) {
int x;
scanf("%d", &x);
dist += min(x,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255572/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255572/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 x[100] = {};
int main()
{
int n, k;
int ans = 0;
scanf("%d %d", &n, &k);
for (int i = 0; i < n; i++)
{
scanf("%d", &x[i]);
}
for (int i = 0; i < n; i++)
{
if (x[i] < k - x[i])
{
ans = ans + (x[i] * 2);
}
else
{
ans = ans + ((k - x[i]) * 2);
}
}
printf("%d", ans);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255615/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255615/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"
@x = dso_local global [100 ... |
#include <stdio.h>
int
main(int argc, char *argv[])
{
int n, a, cnt4 = 0, cnto = 0, cnte = 0;
scanf("%d", &n);
for(int i = 0; i < n; i++){
scanf("%d", &a);
if((a & 3) == 0) cnt4++;
if((a & 1) == 1) cnto++;
if((a & 3) != 0 && (a & 1) == 0) cnte++;
}
if(cnte == 0){
if(cnto <= cnt4 + 1) prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255659/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255659/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 ll long long
int main()
{
int n, i, b0=0, b1=0, b2=0;
ll a;
scanf("%d", &n);
for (i=0; i<n; i++){
scanf("%lld", &a);
if (a % 4 == 0) b2++;
else if (a % 2 == 0) b1++;
else b0++;
}
if (b1 == 0){
if (b0 < b2+2) printf("Yes\n");
else printf("No\n");
} els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255701/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255701/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 MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX_N 1000
#define MAX_B 10000
int dp[MAX_N + 1][MAX_B + 1];
int main() {
int h, n;
scanf("%d %d", &h, &n);
int *a = malloc(sizeof(int) * n); // attack
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255789/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255789/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) {
char T[200001];
scanf("%s", T);
for (int i = 0; T[i] != '\0'; i++) {
if (T[i] == '?') {
T[i] = 'D';
}
}
printf("%s\n", T);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255839/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255839/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(){
long int t;
scanf("%ld",&t);
while(t--){
long long int k,j,i;
scanf("%lld %lld %lld",&k,&j,&i);
long long int n=2*(abs(j-k));
if(j>n||k>n||i>n){
printf("-1\n");
continue;
}
else{
if(i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25589/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 main(void)
{
int i;
char t[200000];
scanf("%s", t);
for( i = 0; t[i] != '\0'; i++ ){
if( t[i] == '?' ){
t[i] = 'D';
}
printf("%c", t[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255932/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255932/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 long int N,A,B,i,h[100000],K,left=0,right=1000000000,sum;
scanf("%lld %lld %lld",&N,&A,&B);
for(i=0;i<N;++i){
scanf("%lld",&h[i]);
}
while(left!=right){
K=(right+left)/2;
sum=0;
for(i=0;i<N;i++){
if(h[i]-K*B > 0){
// sum += (h[i]-K*B)%(A... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255976/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255976/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[10000],b,c,d,n,i,j,k;
double e=0.0;
scanf("%d%d%d%d",&n,&b,&c,&d);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=0;i<n;i++){
for(j=n-1;j>i;j--){
if(a[j-1]>a[j]){
k=a[j];
a[j]=a[j-1];
a[j-1]=k;
}
}
}
for(i=n-1;i>=0;i--){
d+=a[i];
b+=c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256018/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256018/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>
void swap(int *i, int *j)
{
*i += *j;
*j = *i - *j;
*i -= *j;
}
float max(float i, float j)
{
if (i < j){
return (j);
}
return (i);
}
int main(void)
{
int n;
int a, b;
int i, j;
float ans;
int num;
int data[100];
scanf("%d", &n);
scanf("%d %d", &a, &b);
scanf("%d", &num);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256069/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256069/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 min(a, b) ((a) < (b) ? (a) : (b))
int main(void)
{
int i;
int array[32] = {0};
while (scanf("%d", &i), i){
int j;
int n = 32;
for (j = 0; j < i; j++) scanf("%d", array + j);
for (j = 0; n > 0; j = (j + 1) % i){
printf("%d\n", min(n - ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256111/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256111/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... |
/*
cat <<EOF >mistaken-paste
*/
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#define VERYBIG 200000000000007LL
#de... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256162/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256162/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.hw = type { i32, i3... |
#include <stdio.h> // printf(), putchar(), scanf()
int
main(int argc, char **argv)
{
const double height[5] = {165.0, 170.0, 175.0, 180.0, 185.0};
int bins[6];
for (int i = 0; i < 6; ++i)
bins[i] = 0;
int n;
scanf("%d", &n);
for (int i = 0; i < n; ++i)
{
double d;
scanf("%lf", &d);
int j;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256205/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256205/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 lank[6], n, i;
int main(void)
{
double h;
scanf("%d", &n);
for (i = 0; i < n ; i++){
scanf("%lf", &h);
if (h < 165.0){
lank[0]++;
}
else if (h < 170){
lank[1]++;
}
else if (h < 175){
lank[2]++;
}
else if (h < 180){
lank[3]++;
}
else if (h < 185){
lan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256278/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256278/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 X;
scanf("%d",&X);
switch (X) {
case 3:
case 5:
case 7:
printf("YES");
break;
default:
printf("NO");
break;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256320/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256320/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;
scanf("%d",&a);
if(a==7 || a==5 || a==3){
printf("YES");
}else{
printf("NO");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256364/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256364/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 x;
scanf("%d",&x);
if(x==3||x==5||x==7) printf("YES");
else printf("NO");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256414/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256414/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 <ctype.h>
int main(void)
{
int a;
if(scanf("%d", &a) == 1);
if(a == 7 || a == 5|| a == 3){
printf("YES");
}else{
printf("NO");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256458/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256458/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 X;
scanf("%d",&X);
if(X==3 || X==5 || X==7){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256500/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256500/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;
scanf("%d",&N);
if(N==3||N==5||N==7)printf("YES\n");
else printf("NO\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256544/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256544/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 X;
scanf("%d",&X);
if((X==3||X==5)||X==7) printf("YES");
else printf("NO");
// your code goes here
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256595/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256595/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 x;
scanf("%d",&x);
if( x==7 || x==5 || x==3 )
printf("YES\n");
else
printf("NO\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256645/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256645/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 x;
scanf("%d", &x);
if (x == 7 || x == 5 || x == 3) {
printf("YES\n");
}
else {
printf("NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256689/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256689/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 ec=0,wc=0,nc=0,sc=0;
int flagew=0,flagns=0;
char s[1000];
scanf("%s",s);
for(int i=0;i<=strlen(s);i++){
if(s[i] == 'E')ec++;
else if(s[i] == 'W')wc++;
else if(s[i] == 'N')nc++;
else if(s[i] == 'S')sc++;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256746/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256746/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... |
/*
============================================================================
Name : code.c
Author : Deepanshu Thakur
Version : 1.0
Copyright : None
Description : Codeforces Contest #278
============================================================================
*/
#include <stdio.h>
#incl... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25679/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 m,nmin,nmax,tokuten[200];
int i,j;
int gap,gapmax,count;
while(1){
scanf("%d%d%d",&m,&nmin,&nmax);
if(m==0 && nmin==0 && nmax==0)break;
gapmax=0;
for(i=0;i<m;i++){
scanf("%d",&tokuten[i]);
}
for(j=nmin;j<=nmax;j++){
gap=tokuten[j-1]-tokuten[j];
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256832/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256832/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<stdint.h>
#include<inttypes.h>
typedef struct binary_heap {
void *array;
size_t heap_size;
size_t max_size;
size_t val_size;
int (*cmp) (const void *, const void *);
} heap;
heap* new_binary_heap (const size_t val_size, int (*cmp_func) (const void *, const void ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256876/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256876/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.binary_heap = type ... |
#include <stdio.h>
#include <stdlib.h>
int max(int a,int b){
if(a>b)return a;
else return b;
}
int main(void) {
int n,ans=0;
scanf("%d",&n);
int dp[n][3];
int a[n][3];
for(int i=0;i<n;i++){
scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]);
dp[i][0]=0,dp[i][1]=0,dp[i][2]=0;//総和の初期化
}
dp[0][0]=a[0][0],dp[0][1]=a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256919/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256919/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 n;
int in[100000][3];
int dp[100000][3];
int max(int a, int b)
{
if (a > b)
return a;
return b;
}
int main(int argc, char const *argv[])
{
scanf("%d", &n);
int i = 0;
while (i < n){
scanf("%d %d %d", &in[i][0], &in[i][1], &in[i][2]);
i++;
}
i = 0;
while (i < n)
{
int j = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256962/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256962/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.