Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
long q_head = 0;
long q_tail = 0;
long fin_num=0,cur_time=0;
struct Process{
long time;
char name[15];
};
struct Process q[1000000],fin[100000];
//functions
void output();
void enqueue(long l,char *c);
struct Process dequeue(void);
void sim(int i);
int main(void){
int i,j;
int n,quantum;
cha... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252159/source.c"
target datalayout = "e-m:e-p270: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 { i6... |
#include<stdio.h>
#define MAX 100000
typedef struct
{
char name[11];
int time;
int sum;
} ps;
int isEmpty();
int isFull();
void enqueue(ps);
ps dequeue();
int head = 0, tail = 0;
ps que[MAX];
int main()
{
int i, n, q, st=0;
ps x, a[MAX];
x.sum=0;
scanf("%d%d", &n, &q);
for(i=0; i<n; i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252201/source.c"
target datalayout = "e-m:e-p270: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.ps = type { [11 x i... |
#include<stdio.h>
#include<string.h>
#define LEN 100005
#define MAX 100000
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],A[LEN+1];
int head, tail, n;
void enqueue(P x){
if(isFull() == 1) fprintf(stderr,"Er... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252245/source.c"
target datalayout = "e-m:e-p270: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
#define MAX 100
typedef struct pp{
char name[MAX];
int t;
}P;
P Q[LEN+1];
int head, tail, n;
void initialize(void);
void enqueue(P);
P dequeue(void);
int main(){
P u;
int elaps = 0, n;
int i, q;
scanf("%d %d", &n, &q);
for ( i = 1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252296/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252296/source.c"
target datalayout = "e-m:e-p270: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;
if (tail == LEN) tail=0;
else tail++;
}
P dequeue(){
P x = Q[head];
if (head == LEN) head=0;
else head ++;
return x;
}
int main(){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252346/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252346/source.c"
target datalayout = "e-m:e-p270: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 <math.h>
int main(){
int n, i, j, soma = 0, soma2 = 0, soma3 = 0;
scanf("%d", &n);
int brack[n], brack2[n], brack3[n];
char vet[n][101];
for (i = 0; i < n; ++i){
scanf("%s", vet[i]);
}
for (i = 0; i < n; ++i){
for (j =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25239/source.c"
target datalayout = "e-m:e-p270: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>
#include<string.h>
#include<math.h>
#define N 100010
#define pi M_PI
typedef struct ppp{
char name[20];
int time;
} P;
P Q[N];
int head=0,tail=0;
void enqueue(P x){
Q[tail]=x;
tail =(tail+1)%N;
}
P dequeue(){
P x=Q[head];
head =(head+1)%N;
return x;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252432/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252432/source.c"
target datalayout = "e-m:e-p270: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.ppp = type { [20 x ... |
#include <stdio.h>
#include <stdlib.h>
#define MAX 100000
struct duilie {
char name[10];
int time;
} Q[MAX];
int head;
int tail;
int max;
void initialize(){
head = tail = 0;
}
int isEmpty(){
return head == tail;
}
int isFull(){
return (head == tail+1) || (tail+1 == MAX && head == 0);
//retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252476/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252476/source.c"
target datalayout = "e-m:e-p270: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.duilie = type { [10... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_LENGTH_NAME_STR 11
#define MAX_NUM_PROCESS 100000
/*
* Process
*/
typedef struct {
char name[MAX_LENGTH_NAME_STR];
int timeInfo;
} Process;
void copyProcess(Process * p_out, Process in) {
strcpy(p_out->name, in.name);
p_out->ti... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252526/source.c"
target datalayout = "e-m:e-p270: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+1];
int head, tail, n;
int res(int x, int y){
return x<y?x:y;
}
void enqueue(P x){
Q[tail]=x;
tail = (tail+1)%LEN;
}
P dequeue(){
P x=Q[head];
head = (head+1)%LEN;
return x;
}
int main(){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252577/source.c"
target datalayout = "e-m:e-p270: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()
{
int n,k;
scanf("%d %d",&n,&k);
int i,a;
int count=0;
for(i=0;i<n;i++)
{
scanf("%d",&a);
count+=a;
}
if(2*count >= (2*k-1)*n)
printf("0\n");
else
{
int ans = (2*k - 1)*n - 2*count ;
printf("%d\n",ans);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25262/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25262/source.c"
target datalayout = "e-m:e-p270: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 enq(P x){
Q[tail]=x;
tail=(tail+1)%len;
}
P deq(){
P x=Q[head];
head=(head+1)%len;
return x;
}
int min(int a,int b){return a<b?a:b;}
int main(void){
int ela=0,c;
int i,q;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252670/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252670/source.c"
target datalayout = "e-m:e-p270: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;
if(tail == LEN - 1){
tail = 0;
} else {
tail++;
}
}
P dequeue(){
P tmp = Q[head];
if(head ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252720/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252720/source.c"
target datalayout = "e-m:e-p270: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 ... |
#define N 100005
#include <stdio.h>
struct task {
char name[15];
int time;
};
struct task tasks[N];
int head, tail = 0;
void enqueue(struct task x) {
tasks[tail] = x;
tail = (tail + 1) % N;
}
struct task dequeue() {
struct task t = tasks[head];
head = (head + 1) % N;
return t;
}
int main... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252771/source.c"
target datalayout = "e-m:e-p270: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.task = type { [15 x... |
#include<stdio.h>
#define MAX 131072
typedef struct _task{
char name[11];
int time;
} task;
task Q[MAX];
int head, tail;
void initialize();
void enq(task);
task deq();
int isFull();
int isEmpty();
int main(void){
int i, q, N, time_passed = 0;
task t;
scanf("%d %d", &N, &q);
for(i = 0; i < N; i++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252814/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252814/source.c"
target datalayout = "e-m:e-p270: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._task = type { [11 ... |
#include <stdio.h>
#define M 100002
//Queue P87
typedef struct{
char name[10];
int t;
} Q;
Q Que[M];
int head,tail; //この時Que[M]はリング状になってて、先頭と末尾の表現が必要
void enqueue(Q x){
Que[tail]=x;
tail=(tail+1)%M; //キューの末尾に並ばせてtail++(リング状なので%Mが必要)
}
Q dequeue(){
Q x;
x=Que[head]; //エンキューと同じ
head=(head+1)%M;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252858/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252858/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Q = type { [10 x i8... |
#include <stdio.h>
#define N 100005
typedef struct pro{
char name[10];
int time;
}PROCESS;
void enqueue(PROCESS );
PROCESS dequeue();
PROCESS QUEUE[N];
int head = 0,tail;
int main()
{
int num,q,cnt,t = 0,j = 0;
scanf("%d%d",&num,&q);
for(int i = 0; i < num; i++){
scanf("%s%d",QUEUE[i].name,&QUEUE[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252900/source.c"
target datalayout = "e-m:e-p270: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>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P;
void enqueu(P);
P dequeu(void);
int min(int,int);
P Q[LEN+1];
int head,tail,n;
int main(){
int elaps=0,c,i,q;
P u;
scanf("%d%d",&n,&q);
for(i=1;i<=n;i++){
scanf("%s",Q[i].name);
scanf("%d",&Q... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252944/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252944/source.c"
target datalayout = "e-m:e-p270: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 pro {
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 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252988/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252988/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.pro = type { [100 x... |
#include <stdio.h>
#include <math.h>
int main(void){
int i, n, k, x, sum=0, aux;
int nota[101];
float f;
scanf("%d", &n);
scanf("%d", &k);
for(i=0; i<n; i++){
scanf("%d", &aux);
nota[i]=aux;
sum=sum+nota[i];
}
f=(float) sum/n;
if(f>=(k-0.5))
x=0;
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25303/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25303/source.c"
target datalayout = "e-m:e-p270: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<b ? a :b;
}
int m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253073/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253073/source.c"
target datalayout = "e-m:e-p270: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 Q_LEN 100005
typedef struct pp{
char name[100];
int time;
}PROCESS;
static PROCESS Q[Q_LEN+1];
static int head, tail, process_num;
void
enqueue(PROCESS process_data)
{
Q[tail] = process_data;
if (Q_LEN < (tail + 1))
tail = 0;
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253116/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253116/source.c"
target datalayout = "e-m:e-p270: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>
long long n, p, m, k, l, t, i, j, k, q, a[1000000], c, d, x, y, b, g, w, e;
char s[1000000];
int war(const void* aa, const void* bb)
{
return(*(long long*)bb-*(long long*)aa);
}
/*
long long bins(long long p, long long k, long long s)
{
if(a[(p+k)/2]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25316/source.c"
target datalayout = "e-m:e-p270: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;
else return b;
}
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253202/source.c"
target datalayout = "e-m:e-p270: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 100000
typedef struct pp{
char name[10];
int t;
}P;
P Q[LEN];
int head, tail, n,b;
void enqueue(P x);
P dequeue(void);
int a(int,int);
int main(){
int elaps = 0, c=0;
int i, q;
P u;
scanf("%d %d", &n, &q);
for ( i = 1; i <= n; i++){
scanf("%s", Q[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253253/source.c"
target datalayout = "e-m:e-p270: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 { [10 x i... |
#include <stdio.h>
#include <string.h>
#define N 100005
typedef struct {
char name[100];
int t;
}P;
P Q[N];
int head,tail,n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % N;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % N;
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_253297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253297/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.P = type { [100 x i... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void quicksort(int number[ 100001],int first,int last)
{
int i, j, pivot, temp;
if(first<last)
{
pivot=first;
i=first;
j=last;
while(i<j)
{
while(number[i]<=number[pivot]&&i<last)
i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25334/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25334/source.c"
target datalayout = "e-m:e-p270: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>
struct list{
char name[15];
int time;
};
struct list node[100005];
int main()
{
int n,ti,T=0;
int i=0;
scanf("%d%d",&n,&ti);
int coun=n;
while(coun--)
{
scanf("%s %d",&node[i].name,&node[i].time);
i++;
}
for(int head=0,tail=n;head!=tail;head=(head+1)%(n+1))
{
i=he... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253383/source.c"
target datalayout = "e-m:e-p270: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.list = type { [15 x... |
#include<stdio.h>
#include<stdlib.h>
#include<stdint.h>
#include<inttypes.h>
#include<string.h>
typedef int32_t i32;
typedef int64_t i64;
#define ALLOC(size,type) ((type*)calloc((size),sizeof(type)))
typedef struct directed_edge {
int32_t vertex;
int32_t next;
} graph_edge;
typedef struct directedGraph {
grap... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253433/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253433/source.c"
target datalayout = "e-m:e-p270: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.directedGraph = typ... |
#include <stdio.h>
int main(){
int n;
char s[10001], al[27];
scanf("%d %s", &n, s);
for(int i = 0; i < 26; i++){
al[i] = 'A' + i;
}
for(int i = 0; s[i] != '\0'; i++){
s[i] = al[(s[i] - 'A' + n) % 26];
}
printf("%s\n", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253491/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253491/source.c"
target datalayout = "e-m:e-p270: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 buf[10000];
int n;
int i = 0;
scanf("%d", &n);
scanf("%s", buf);
while (buf[i] != '\0' && buf[i] != '\n')
{
buf[i] = 'A' + ((buf[i] - 'A' + n) % 26);
i++;
}
printf("%s", buf);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253541/source.c"
target datalayout = "e-m:e-p270: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 s[10001];
int n;
scanf("%d", &n);
scanf("%s", s);
for(int i = 0; i < strlen(s); ++i){
s[i] = s[i] + n;
if(s[i] > 'Z') s[i] = s[i] - 26;
}
puts(s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253585/source.c"
target datalayout = "e-m:e-p270: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>
#define L 10000
int main() {
static char s[L + 1], t[L + 1];
int l, n, i;
scanf("%d%s", &n, s);
l = strlen(s);
for (i = 0; i < l; i++)
t[i] = ((s[i] - 'A') + n) % 26 + 'A';
printf("%s\n", t);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253628/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.s = internal global [... |
#include <stdio.h>
#include <string.h>
int main(){
char seq[10001];
int n;
scanf("%d", &n);
scanf("%s", seq);
int y = strlen(seq);
for(int i = 0; i < y; ++i){
if((seq[i]+n) <= 90){
printf("%c", (seq[i]+n));
}
else{
printf("%c", (seq[i]+n)-90+64);
}
}
printf("\n");
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253679/source.c"
target datalayout = "e-m:e-p270: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 <stdint.h>
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
typedef unsigned long long int uint64;
typedef long long int int64;
char S[(10*10*10*10)+1];
char T[(10*10*10*10)+1];
int main()
{
int cnt;
int N;
int i;
int result = 0;
int len;
cnt = scanf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
long long int n,m,c,i,j,co=0,s;
scanf("%lld %lld %lld",&n,&m,&c);
long long int b[m],a[n][m];
for(i=0;i<m;i++)
scanf("%lld",&b[i]);
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf("%lld",&a[i][j]);
}
}
for(i=0;i<n;i++){
s=c;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253787/source.c"
target datalayout = "e-m:e-p270: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>
typedef unsigned u;
typedef double d;
int main()
{
u x,y,i,j,k;d X,Y;
scanf("%u%u",&x,&y);X=(d)x;Y=(d)y;
if(!x)
{
printf("%u %u\n%u %u\n%u %u\n%u %u\n",0,1,0,y,0,0,0,y-1);
return 0;
}
if(!y)
{
printf("%u %u\n%u %u\n%u %u\n%u %u\n",1,0,x,0,0,0,x-1,0);
return 0;
}
if(y<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25383/source.c"
target datalayout = "e-m:e-p270: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 n,m,c,a[20][20],b[20],count=0,sum;
scanf("%d%d%d",&n,&m,&c);
for(int i=0;i<m;i++){
scanf("%d",&b[i]);
}
for(int i=0;i<n;i++){
sum=c;
for(int j=0;j<m;j++){
scanf("%d",&a[i][j]);
sum+=a[i][j]*b[j];
}
if(s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253873/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253873/source.c"
target datalayout = "e-m:e-p270: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, B[20], A[200], i, j, count = 0, ans;
scanf("%d%d%d", &N, &M, &C);
for (j = 0; j < M; ++j) {
scanf("%d", &B[j]);
}
for (i = 0; i < N; ++i) {
ans = 0;
for (j = 0; j < M; ++j) {
scanf("%d", &A[i, j]);
ans += A[i, j] * B[j];
}
if (ans + C > 0) {
++cou... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253916/source.c"
target datalayout = "e-m:e-p270: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[10];
scanf("%d",&n);
scanf("%s",s);
if(n==6)
printf("espeon");
else if(n==8)
{
printf("vaporeon");
}
else
{
if(s[0]=='j' || s[1]=='o' || s[3]=='t')
printf("jolteon");
else if(s[0]=='f' || (s[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25396/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25396/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{
int n,m,c,a[100][100],b[200],i,j,tmp=0,cnt=0;
scanf("%d %d %d",&n,&m,&c);
for(i=0;i<m;i++){
scanf("%d",&b[i]);
}
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf("%d",&a[i][j]);
}
}
for(i=0;i<n;i++){
tmp=0;
for(j=0;j<m;j++){
//printf("a[%d][%d]*b[%d] = %d\n",i,j,j,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254009/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254009/source.c"
target datalayout = "e-m:e-p270: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, a[20][20], b[20], i, cnt=0, j, sum=0;
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++){
sum=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254052/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254052/source.c"
target datalayout = "e-m:e-p270: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,onlyacount=0,onlybcount=0,maxcount=0,len,doublecount=0;
scanf("%d",&N);
char s[N][10];
for(i=0;i<N;i++){
scanf("%s",s[i]);
char *hoge;
hoge=s[i];
while((hoge=strstr(hoge,"AB"))!=NULL){
maxcount++;
hoge++;
}
len=strl... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254096/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254096/source.c"
target datalayout = "e-m:e-p270: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>
#define min(a,b) (a<b?a:b)
int main(void){
int n,a[3]={};
scanf("%d",&n);
char s[11];
int len,i,j,ans=0;
for(i=0;i<n;i++){
scanf("%s",s);
len=strlen(s);
if(s[0]=='B') // a[0]: ---A
a[s[len-1]=='A'?1:2]++; // a[1]: B--A
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254139/source.c"
target datalayout = "e-m:e-p270: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 par[200005];
int root(int n)
{
if (par[n] != n)
par[n] = root(par[n]);
return par[n];
}
void uni(int x, int y)
{
x = root(x);
y = root(y);
if (x != y)
par[x] = y;
return;
}
int main()
{
int n, q;
scanf("%d %d", &n, &q);
int i;
for (i = 0; i < n; i++)
par[i] = i;
int t, u, v;
for ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254203/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254203/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@par = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
int main(void) {
long long int x;
long long int a,b;
scanf("%lld", &x);
//scanf("%d", &b):
int m;
int tmp;
int flag=0;
for(int i = 0;i<1200;i++){
a = i;
tmp = a;
a = a*a*a*a*a;
b = a-x;
if(b > 0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254247/source.c"
target datalayout = "e-m:e-p270: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> /*計算*/
#include <assert.h> /*確認*/
#include <ctype.h> /*文字操作*/
#include <stdbool.h>/*bool型*/
#include <limits.h>/*限界*/
//---------------------------------------------------
#define rep(i, n) for(int i = 0; i < (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254290/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254290/source.c"
target datalayout = "e-m:e-p270: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;
scanf("%lld",&n);
for(int i=-120;i<120;i++){
for(int j=-120;j<120;j++)
if((i*i*i*i*i)-(j*j*j*j*j)==n){
printf("%d %d",i,j);
return 0;
}
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254333/source.c"
target datalayout = "e-m:e-p270: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 <memory.h>
int count[100];
void solve(int depth, int card[][2], int n, int total, int goal[], int gn) {
int i;
if(depth == n) {
for(i=0;i<gn;i++) {
if(total == goal[i])
count[i]++;
}
return;
}
for(i=0;i<=card[depth][1];i++) {
solve(depth+1, card, n, total + card[depth][... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254377/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254377/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@count = dso_local local_un... |
#include<stdio.h>
#include<math.h>
int main()
{
double x,h;
double sei;
double s,san,tai,hen;
do{
scanf("%lf%lf",&x,&h);
if(x==0 && h==0)break;
sei=x*x;
tai=x/2;
hen=tai*tai+h*h;
hen=sqrt(hen);
san=hen*x/2;
s=4*san+sei;
printf("%0.6f\n",s);
}while(1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254434/source.c"
target datalayout = "e-m:e-p270: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 hyo(int x,int h)
{
double ans=x*x+x*(sqrt(h*h*4+x*x));
return ans;
}
int main(void)
{
int x,h;
while(1==1)
{
scanf("%d\n",&x);
scanf("%d\n",&h);
if(x==0&&h==0)break;
printf("%lf\n",hyo(x,h));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254478/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254478/source.c"
target datalayout = "e-m:e-p270: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 <math.h>
#include <stdio.h>
int main( void ) {
int x, h;
for ( ; scanf( "%d %d", &x, &h ), x; printf( "%f\n", x * x + x * sqrt( 4 * h * h + x * x ) ) ) ;
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254542/source.c"
target datalayout = "e-m:e-p270: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,y,z,i,j,k,a,b,c,n,m,t,mat[110];
static int mark[11000];
mark[1] = 1;
x = 2;
while(1)
{
y = x*x;
if(y > 10000)
break;
mark[y] = 1;
x++;
}
scanf("%d",&t);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25460/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25460/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.mark = internal unnamed... |
// include
// ----------------------------------------------------------------------------
#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
// repetition
// ----------------------------------------------------------------------------
#define FOR(i, a, b) fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254650/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254650/source.c"
target datalayout = "e-m:e-p270: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>
/*
ax + by = c
dx + ey = f
ax = c - by
x = (c - by) / a
dx = f - ey
x = (f - ey) / d
(c - by) / a = (f - ey) / d
d(c - by) = a(f - ey)
dc - bdy = af - aey
aey - bdy = af - dc
y(ae - bd) = af - dc
y = (af - dc) / (ae - bd)
*/
int main() {
double a, b, c, d, e, f, x, y;
while (scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254700/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254700/source.c"
target datalayout = "e-m:e-p270: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;
while(scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF){
double x, y, xx;
x = 1 / (a * e - b * d) * ((e * c) + (-b * f)) + 0.00005;
y = 1 / (a * e - b * d) * ((-d * c) + (a * f)) + 0.00005;
printf("%.3lf %.3lf\n", x, y);
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254744/source.c"
target datalayout = "e-m:e-p270: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 x,y,a,b,c,d,e,f;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
y=(a*f-d*c)/(a*e-d*b);
x=(c-b*y)/a;
printf("%.3f %.3f\n",x,y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254788/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254788/source.c"
target datalayout = "e-m:e-p270: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 roundoff (double a, double b);
int main () {
double coe[6], x, y, numeratorX, numeratorY, denominator;
int i;
//Initialization
i = 0;
x = 0;
y = 0;
numeratorX = 0;
numeratorY = 0;
denominator = 0;
for (i = 0;i < 6;i++) {
coe[i] = 0;
}
while (scanf ("%lf %lf %lf %lf %lf %lf"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254830/source.c"
target datalayout = "e-m:e-p270: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,d,e,f;
float x,y;
while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)!=EOF){
x = (float)(c*e-b*f)/(a*e-d*b);
y = (float)(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("%.3f %.3f\n",x,y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254874/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254874/source.c"
target datalayout = "e-m:e-p270: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){
char s[31];
double z[31];
double a,b,c,d,e,f;
char g[6],h[6],i[6],j[6],k[6],l[6];
double x,y;
double n;
while (fgets(s,30,stdin)!=NULL){
sscanf(s,"%s %s %s %s %s %s",g,h,i,j,k,l);
a=atof(g);
b=atof(h);
c=atof(i);
d=atof(j);
e=ato... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254917/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254917/source.c"
target datalayout = "e-m:e-p270: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(void)
{
int a,b,c,d,e,f;
float x,y;
while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) != EOF){
x = (float)(c*e-f*b)/(a*e-d*b);
y = (float)(c*d-f*a)/(b*d-e*a);
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_254968/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254968/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<math.h>
int Issqr(int n)
{
int a=(int)(sqrt(n)+0.5);
//printf("%d %d\n",a,n);
return a*a==n;
}
int main()
{
int t,flag=0;
int a[110];
scanf("%d",&t);
while(t--){
flag=0;
int n,i,j,sum;
scanf("%d",&n);
for(i=0;i<n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25501/source.c"
target datalayout = "e-m:e-p270: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 ... |
// AOJ Volume 0 Problem 0004
#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) != 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_255068/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255068/source.c"
target datalayout = "e-m:e-p270: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;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)>0){
x=(a*f-c*d)/(a*e-b*d);
y=(c-x*b)/a;
printf("%.3f %.3f\n",y,x);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255125/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255125/source.c"
target datalayout = "e-m:e-p270: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;
float x, y;
while (scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) != EOF){
x = (float)((float)(e*c)-(float)(b*f))/((float)(e*a)-(float)(b*d));
y = (float)((float)(c*d)-(float)(f*a))/((float)(b*d)-(float)(e*a));
if((int)(x * 10000) % 10 >= 5.0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255169/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255169/source.c"
target datalayout = "e-m:e-p270: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) != EOF){
y = (a * f - d * c) / (a * e - d * b);
x = (c - b * y) / a;
printf("%.3f %.3f\n", x, y);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255219/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255219/source.c"
target datalayout = "e-m:e-p270: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/a-(b*(a*f-d*c))/(a*a*e-a*d*b);
y=(a*f-d*c)/(a*e-d*b);
printf("%4.3f %4.3f\n",x,y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255277/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255277/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int i,j,k,n,t,c,a,b;
i=4;k=6;
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%d%d%d",&a,&b,&n);
if(n%3==0)
printf("%d",a);
else if(n%3==1)
printf("%d",b);
else
printf("%d",a^b);
printf("\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25532/source.c"
target datalayout = "e-m:e-p270: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,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)+0.00001;
x=(c-b*y)/a+0.00001;
printf("%.3lf %.3lf\n",x,y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255363/source.c"
target datalayout = "e-m:e-p270: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... |
#pragma region kyopuro_templates
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
#include<time.h>
#include<ctype.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))
#def... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255406/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255406/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node_AVL_set = type... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int N, K;
int x[101];
int main(void){
scanf("%d%d", &N, &K);
int ans = 0;
for(int i = 1; i <= N; i++){
scanf("%d", &x[i]);
if(x[i] < K - x[i]){
ans += 2 * x[i];
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255457/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255457/source.c"
target datalayout = "e-m:e-p270: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 fun (long long int);
int main()
{
unsigned long long int T,n,i,j,k,l,a,b;
scanf("%llu",&T);
for(i=0;i<T;i++)
{
unsigned long long int S[3];
scanf("%llu %llu %llu",&a,&b,&n);
//printf("%llu",a);
S[0]=a;
S[1]=b;
S[2]=a^b;
l=n%3;
printf("%llu\n",S[l]);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25550/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25550/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
int n,k,x,i,c=0;
scanf("%d%d",&n,&k);
for(i=0;i<n;i++){
scanf("%d",&x);
if(k/2<x) c+=(k-x)*2;
else c+=x*2;
}
printf("%d",c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255550/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255550/source.c"
target datalayout = "e-m:e-p270: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 *argv[])
{
int i,n,k,a,sum=0;
while(scanf("%d%d",&n,&k)!=EOF)
{
sum=0;
for(i=1;i<=n;i++)
{
scanf("%d",&a);
if(k-a<a)sum+=2*(k-a);
else sum+=2*a;
}
printf("%d\n",sum);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255594/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255594/source.c"
target datalayout = "e-m:e-p270: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 <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main(void){
int N;
scanf("%d", &N);
int a[N];
int o = 0, t = 0, f = 0;
for(int i = 0; i < N; i++){
scanf("%d", &a[i]);
if(a[i] % 4 == 0){
f++;
}else if(a[i] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255637/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255637/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int N,i;
scanf("%d",&N);
int a[N];
int two=0,four=0;
for(i=0;i<N;i++){
scanf("%d",&a[i]);
if(a[i]%2==0){
if(a[i]%4==0)four++;
else two++;
}
}
if(two>=2)N-=two;
else N--;
if((four>=(N+1)/2))printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255680/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255680/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int N,i,j4=0,j2=0,x;
scanf("%d", &N);
for(i=0;i<N;i++){
scanf("%d",&x);
if(x%4==0){
j4++;
}
else if(x%2==0){
j2++;
}
}
if(j2==0){
if(N-j2-j4-1<=j4){
printf("Yes");
}
else{
printf("No");
}
}
else{
if(N-j2-j4<=j4)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255723/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255723/source.c"
target datalayout = "e-m:e-p270: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>
#define ll long long
#define INF 1<<31-1
#define LNF 9223372036854775807
#define PI 3.14159265358979
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 1000000007
//#define MOD 998244353
#define N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255767/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255767/source.c"
target datalayout = "e-m:e-p270: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 n;
scanf("%d",&n);
n--;
int a[] = {1,2,4,5,7,8,10,11,14,16,17,19,20,22,25,26,28,29};
printf("%d\n",a[n%18]+30*(n/18));
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25581/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25581/source.c"
target datalayout = "e-m:e-p270: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()
{
char T[200000];
int n,i,K,PD_point;
scanf("%s", T);
n = 0;
i = 0;
PD_point = 0;
while (T[n] != '\0') { /* str[n] が終端文字(ヌル文字 '\0')でない間繰り返す */
if(T[n] == '?') {
T[n] = 'D';
}
n++;
}
printf( T );
// for(i = 0 ;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255868/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255868/source.c"
target datalayout = "e-m:e-p270: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()
{
char t[200001];
scanf("%s",t);
int n=0;
while(t[n]!='\0')
{
if(t[n]=='?')
{
t[n]='D';
}
n++;
}
printf("%s",t);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255910/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255910/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
long int n,a,b,h[100000],m=0,i,t,u=1,x;
scanf("%ld%ld%ld",&n,&a,&b);
for(i=0;i<n;i++){scanf("%ld",&h[i]);m=m<h[i]?h[i]:m;}
t=m/b/2;
while(1){
x=0;for(i=0;i<n;i++)if(t*b<h[i])x+=(h[i]-t*b+a-b-1)/(a-b);
if(x<=t){
x=0;for(i=0;i<n;i++)if((t-1)*b<h[i])x+=(h[i]-(t-1)*b+a-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255954/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255954/source.c"
target datalayout = "e-m:e-p270: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 t, k, x[1001], i;
int main()
{
i = 1;
for (k=1; k <= 1000; ++i)
if (i%10 != 3 && i%3 != 0) {
x[k] = i;
++k;
}
scanf("%d", &t);
while (t >= 1) {
scanf("%d", &k);
printf("%d\n", x[k]);
t--;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25604/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25604/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@i = dso_local local_unnamed_... |
#include<stdio.h>
#include<stdlib.h>
const long mod = 1000000007l;
int N, K, p=0, n=0;
long posi[1<<18], nega[1<<18], ans = 1;
int cmp(const void *a, const void *b){
return abs(*(int*)b) - abs(*(int*)a);
}
int main(){
scanf("%d%d", &N, &K);
if(N == K){
long ans = 1;
while(N--){
long A;
scanf("%ld", &A);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256090/source.c"
target datalayout = "e-m:e-p270: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_unna... |
#include<stdio.h>
int main(void){
int n,i,j,a[32],b,ohajiki;
while(scanf("%d",&n),n){
ohajiki=32;
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
i=0;
j=0;
while(ohajiki>1){
if(i%2==0){
b=(ohajiki-1)%5;
printf("%d\n",ohajiki-b);
ohajiki=ohajiki-b;
}
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256140/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256140/source.c"
target datalayout = "e-m:e-p270: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;
float hight[40];
int i, j;
int count[6] = {0};
scanf("%d", &n);
for (i = 0; i < n; i++){
scanf("%f", &hight[i]);
if (hight[i] < 165.0){
count[0]++;
}
else if (hight[i] < 170.0){
count[1]++;
}
else if (hight[i] < 175.0){
count[2]++;
}
else if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256184/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256184/source.c"
target datalayout = "e-m:e-p270: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 dec[6]={0};
int n,i,j;
double a;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%lf",&a);
if(a<165){
dec[0]++;
}
for(j=1;j<5;j++){
if(165+5*(j-1)<=a&&165+5*j>a){
dec[j]++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256256/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256256/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
long long int i,na, ma, k,l, n[100002], m[100002];
scanf("%I64d %I64d %I64d %I64d", &na, &ma, &k, &l);
for(i=1; i<=na; i++)
scanf("%I64d", &n[i]);
for(i=1; i<=ma; i++)
scanf("%I64d", &m[i]);
if(n[k] < m[ma-l+1])
printf("YES\n");
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2563/source.c"
target datalayout = "e-m:e-p270: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()
{
int x=0;
scanf("%d",&x);
if(x==5 || x==3 || x==7)
{
printf("YES\n");
} else
{
printf("NO\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256342/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256342/source.c"
target datalayout = "e-m:e-p270: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=7,b=5,c=3,n;
scanf("%d",&n);
if(n==a||n==b||n==c){printf("YES");}
else printf("NO");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256386/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256386/source.c"
target datalayout = "e-m:e-p270: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 >= 3 && a <= 7 && a % 2 == 1 )
{
printf("YES\n");
}
else
{
printf("NO\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256436/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256436/source.c"
target datalayout = "e-m:e-p270: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 t, k, a[1002], i = k = 1;
for (i; i <= 1000; i++, k++){
if (k % 3 == 0 || k % 10 == 3){
k++;
if (k % 3 == 0 || k % 10 == 3)
k++;
}
a[i] = k;
}
scanf("%i", &t);
for (t; t; t--){
scanf("%i",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25648/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25648/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int a;
scanf("%d",&a);
if(a==3||a==5||a==7) puts("YES");
else puts("NO");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256522/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256522/source.c"
target datalayout = "e-m:e-p270: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");
else
printf("NO");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256573/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256573/source.c"
target datalayout = "e-m:e-p270: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 nA;
scanf("%d",&nA);
if (nA==3||nA==5||nA==7)
{
printf("YES" );
}
else printf("NO");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256623/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256623/source.c"
target datalayout = "e-m:e-p270: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");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256667/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256667/source.c"
target datalayout = "e-m:e-p270: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 s[1005];
scanf("%s", s);
int flag = 0;
for(int i=0; i<strlen(s); i++){
if(s[i] == 'N') flag |= 1;
if(s[i] == 'W') flag |= 2;
if(s[i] == 'S') flag |= 4;
if(s[i] == 'E') flag |= 8;
}
if(flag == 15 || flag == 5 || flag == 10)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256724/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256724/source.c"
target datalayout = "e-m:e-p270: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){
char s[1100];
int p[4]={},ans;
scanf("%s",s);
for(int i=0;i<strlen(s);i++){
if(s[i]=='N')p[0]++;
else if(s[i]=='W')p[1]++;
else if(s[i]=='S')p[2]++;
else p[3]++;
}
if(p[0]==0&&p[2]==0&&p[1]*p[3]>0)ans=1;
el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256768/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256768/source.c"
target datalayout = "e-m:e-p270: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 int_sort(const void *a, const void *b) {
if( *(int *)a > *(int *)b ) {
return -1;
}else if( *(int *)a == *(int *)b ) {
return 0;
}
return 1;
}
int main(){
int n;
scanf("%d", &n);
int i;
int a[n];
int used[n];
for(i=0;i<n;i++){
used[i] = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256810/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256810/source.c"
target datalayout = "e-m:e-p270: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() {
while (1) {
int m, nmin, nmax, p[201], maxg = 0, n;
scanf("%d %d %d", &m, &nmin, &nmax);
for (int i = 1; i <= m; i++) {
scanf("%d", &p[i]);
}
for (int j = nmin; j <= nmax; j++) {
if (p[j] - p[j+1] >= maxg) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_256854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_256854/source.c"
target datalayout = "e-m:e-p270: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.