Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(void){
int A,B;
scanf("%d%d",&A,&B);
if(A>=13){
printf("%d",B);
}else if(A>=6){
printf("%d",B/2);
}else{
printf("0");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328609/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328609/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d %d", &a, &b);
if(a <= 5) printf("0\n");
else if (a <= 12) printf("%d\n", b / 2);
else printf("%d\n", b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328652/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328652/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<string.h>
#include<math.h>
typedef int32_t i32;
typedef int64_t i64;
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define ABS(a) ((a) > (0) ? (a) : -(a))
void run (void) {
i32 a, b;
scanf ("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328696/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328696/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int cmp(const void *a, const void *b); //比較関数
int main(){
int n,max=0;
int i;
char s[200001][11];
int ans[200000];
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%s",s[i]);
qsort(s,n,sizeof(s[0]),cmp); //辞書順にソート
for(i=0;i<n;i++){
if(str... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328753/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328753/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int acs(const void *a, const void *b) {
return *(int*)a - *(int*)b;
} /* 1,2,3,4.. */
int des(const void *a, const void *b) {
return *(int*)b - *(int*)a;
} /* 8,7,6,5.. */
int cmp_char(const void *a, const void *b) {
return *(char*)a -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328803/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328803/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@s = dso_local global [2000... |
#include <stdio.h>
int main(void){
// Your code here!
int n;
int w[100001]={};
int s[100000]={};
scanf("%d",&n);
int k;
for(int i=0;i<n;i++){
scanf("%d",&k);
w[k]++;
}
int max=0;
for(int i=0;i<100000;i++){
s[i]=w[i-1]+w[i]+w[i+1];
if(s[i]>s[ma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328854/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n, a[100000]; int max = 0, min = 100000; int cnt[100001] = {};
scanf("%d", &n);
for(int i = 0; i < n; i++){
scanf("%d", &a[i]);
max = (max > a[i] ? max : a[i]);
min = (min > a[i] ? a[i] : min);
cnt[a[i]]++; cnt[a[i] + 1]++;
if(a[i] >= ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328904/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328904/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int i, n, a[200000], b[200000], max = 0, mix = 0;
scanf("%d", &n);
for(i = 0; i < n; i++) {
scanf("%d", &a[i]);
b[a[i] - 1]++;
b[a[i]]++;
b[a[i] + 1]++;
if(max < a[i])
max = a[i];
}
for(i = 0; i <= max + 1; i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328948/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328948/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void)
{
int n,i,j,cnt,cnt1;
char s[101],x[101][21];
scanf("%s%d",s,&n);
for(i=0;i<n;i++){
scanf("%s",x[i]);
for(j=1;j<=10;j++) x[i][9+j]=x[i][j-1];
}
cnt=0; cnt1=0;
for(i=0;i<n;i++){
for(j=0;j<20;j++){
if(s[cnt]==x[i][j]) cnt++;
if(strlen(s)==cnt){
cn... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328999/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void){
int n,i,ans=0;
char sar[321],ring[321],temp[321];
scanf("%s%d",sar,&n);
for(i=0;i<n;i++){
scanf("%s",ring);
strcpy(temp,ring);
strcat(ring,temp);
if(strstr(ring,sar) != NULL) ans++;
}
printf("%d\n",ans)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329077/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329077/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int t,et,tt,dt;
int s;
t=et=tt=dt=0;
while(scanf("%d%d%d",&a,&b,&c)==3) {
if(a>b){s=a;a=b;b=s;}
if(b>c){s=b;b=c;c=s;}
if(a>b){s=a;a=b;b=s;}
if(a+b>c && b-a<c) {
t++;
if(a*a+b*b==c*c)tt++;
else if(a*a+b*b>c*c)et++;
else dt++;
} else break;
}
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329127/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329127/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef struct list *Node;
typedef Node List;
struct list{
int num;
Node next;
};
List insertinFront(List L,int x);
Node newNode(int x);
void freeList(List L);
int main(){
int N,i = 1;
scanf("%d",&N);
int sum = 0;
while(sum < N){
sum+=i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329170/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329170/source.c"
target datalayout = "e-m:e-p270: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 { i32, ... |
#include <stdio.h>
int main(void)
{
int m,n,start,money,year,system,cost,total[200],interest;
int interest2[100],interest_total,temp;
double rate;
int i,j,k,p,q;
scanf("%d",&m);
for(i=0;i<m;i++){
scanf("%d",&start);
scanf("%d",&year);
scanf("%d",&n);
for(j=0;j<n;j++){
scanf("%d %lf %d",&system,&rate,&... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329220/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,i;
long long j,k,a[100000],ans,aaa=1000000000000000000;
ans=1;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%lld",&a[i]);
if(a[i]==0){ans=0;}
}
if(ans!=0){
for(i=0;i<n;i++){
k=aaa%ans;
j=(aaa-k)/ans;
if(j<a[i]){ans=-1;break;}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329264/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 MAX 1000000000000000000
int main(void){
int i,n;
long long p[100001];
long long ans = 1;
long long def = 1000000000000000000;
int zero_flag = 0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%lld",&p[i]);
if(p[i] == 0) {
printf("0");
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329307/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int acs(const void *a, const void *b) {
if (*(long long int*)a - *(long long int*)b > 0)
return 1;
else if(*(long long int*)a - *(long long int*)b < 0)
return -1;
else
return 0;
} /* 1,2,3,4.. */
int des(const void *a, cons... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329350/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329350/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef long long ll;
int main() {
int n;
ll ans = 1, a[100000];
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%lld", &a[i]);
if (a[i] == 0) {
printf("0\n");
return 0;
}
}
for (int i = 0; i < n; i++) {
if (a[i] <= 1000000000000000000 / ans) {
ans *= a[i];
} else {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329394/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329394/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(){
int N;
scanf("%d", &N);
int i;
long long int A[100000+1], ans=1;
long long int THR = pow(10,18);
for(i=1;i<=N;i++){
scanf("%lld", &A[i]);
if( A[i] == 0 ){
printf("0\n");
return 0;
}
}
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329444/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329444/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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=1,i,f=0,g=1;
scanf("%ld",&n);
for(i=0;i<n;i++){
scanf("%ld",&a);
if(a==0)g=0;
else if(b>(long int)1000000000000000000/a)f=-1;
b*=a;
}
if(f)printf("%ld",f*g);else printf("%ld",b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329501/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
void swap (int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
return;
}
int gcd(int a, int b){
int c;
while (b > 0){
c = a % b;
a = b;
b = c;
}
return a;
}
long int modpow(long int a,long int n,l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329552/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329552/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d",&n);
long h[n];
for(int i=0;i<n;i++){
scanf("%ld",&h[i]);
// printf("%d",h[i]);
}
int c=0,max=0;
for(int i=0;i<n-1;i++){
//printf("%ld\n",h[i]);
if(h[i]>=h[i+1]){
//printf("%ld %ld\n",h[i],h[i+1]);
c++;
}
else {//prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329596/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329596/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 _CRT_INT_MAX
#define _CRT_INT_MAX 2147483647
int main(){
int n;
scanf("%d",&n);
int h[100001];
int i;
for(i=1;i<=n;i++){
scanf("%d",&h[i]);
}
h[n+1] = 2000000000;
int j = 1;
int count=0;
while(1){
i=0;
while(1){
if(h... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329639/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329639/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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... |
/*
submission # - User: herp_sy
https://atcoder.jp/contests/
coding: utf-8
lang: C (GCC 5.4.1)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007
int main(int argc, char const *argv... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329682/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329682/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<limits.h>
int main(void){
int ans=0;
int num=0;
int score=0;
int masu[100000];
int i=0;
scanf("%d\n",&num);
for(int n=0;n<num;n++){
scanf("%d",&masu[n]);
}
while(i<num-1){
if(masu[i]>=masu[i+1]){
score++;
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329725/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329725/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <limits.h>
#include <stdlib.h>
#include <math.h>
int main(void)
{
long int i, j;
long int n, k;
long int sum;
long int max;
long int count;
long int heit;
long int h[100000];
scanf("%ld", &n);
for(i = 0; i < n; i++) {
scanf("%ld", &h[i]);
}
max = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329811/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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... |
// AOJ ITP2_9_D Set Symmetric Difference
// 2019.3.8 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
int in() // 非負整数の入力
{
int n = 0, c = gc();
do n = 10 * n + (c ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329855/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329855/source.c"
target datalayout = "e-m:e-p270: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._IO_FILE = type { i... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
long i, N,K;
long sum = 0L;
scanf("%ld %ld", &N, &K);
long den = 1000000007L;
for (i=K;i<=N+1;i++) {
sum += (i*(N-i+1)+1);
}
printf("%ld\n", sum%den);
return EXIT_SUCCESS;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329905/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329905/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,k,ans=0,temp;
scanf("%lld %lld",&n,&k);
for(long long int i=k;i<n+2;i++){
temp=((i*(2*n-i+1)))/2+1;
temp-=((i*(i-1)))/2;
ans+=(temp%1000000007);
ans=ans%1000000007;
}
printf("%lld",ans);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329956/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329956/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int x, y, z;
scanf("%d %d %d", &a, &b, &c);
scanf("%d %d %d", &x, &y, &z);
a -= x;
b -= y;
c -= z;
while(a<0){
if(b<2 && c<2){
printf("No");
return 0;
}
if(b>1) a++, b-=2;
else if(c>1) a++, c-=2;
}
while(b<0){
if(a<2 && c<2){
printf("No");
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 consta... |
#include<stdio.h>
int main()
{
char a[10],s[101],c[10];
scanf("%s%s%s",a,s,c);
printf("A%cC\n",s[0]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330040/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 s[150];
for (int i = 0; i < 150; i++){
scanf("%c", &s[i]);
}
char x = s[8];
printf("%c%c%c\n", 'A', x, 'C');
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330084/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 str[200];
char x;
int i;
scanf("%[^\n\r]", str);
for (i = 0; str[i - 1] != ' '; i++) {
}
x = str[i];
printf("A%cC\n", x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330127/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330127/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 s[5][110] = {};
for(int i = 0; i < 3; i++){
scanf("%s", s[i]);
printf("%c", s[i][0]);
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330170/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330170/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a[100], s[100];
scanf("%s%s%s", a, s, a);
printf("A%cC\n", s[0]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330257/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330257/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
#define rep(i, n) for(int i=0; i<(n); ++i)
#define max 200001
//qsort(str, n, sizeof(int), up_comp);
int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;}
int down_comp(const void *a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330314/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330314/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main()
{
int x,a,b,c,d;
scanf("%d%d%d",&x,&a,&b);
c=sqrt((x-a)*(x-a));
d=sqrt((x-b)*(x-b));
if(c>d)
{
printf("B");
}
else
{
printf("A");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(){
int x, a, b;
scanf("%d%d%d", &x, &a, &b);
if(abs(x - a) < abs(x - b)){
printf("A\n");
}else if(abs(x - a) > abs(x - b)){
printf("B\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330408/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330408/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x, a,b;
do
{
scanf("%d %d %d",&x,&a,&b);
}while(x>=1 && x<=1000 && a>=1 && a<=1000 && b<=1 && b<=1000);
if(abs(a-x)>abs(b-x))
printf("B\n");
else
printf("A\n");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330466/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330466/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(){
int x,a,b;
scanf("%d %d %d",&x,&a,&b);
int ax=x-a;
int bx=x-b;
if (ax<0){
ax=-ax;
}
if (bx<0){
bx=-bx;
}
if (ax>bx){
printf("B\n");
}
else{
printf("A\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330516/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330516/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void){
int x, a, b;
scanf("%d %d %d",&x,&a,&b);
if(abs(a-x)>abs(b-x)) printf("B\n");
else printf("A\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330581/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330581/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, C;
scanf("%d%d", &x, &y);
C = x + (y/2);
printf("%d\n", C);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330624/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330624/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, Y;
if (scanf("%d%d", &X, &Y) != 2) return 1;
printf("%d\n", X + Y / 2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330668/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330668/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d %d",&a,&b);
printf("%d",a+b/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330710/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330710/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d%d",&x,&y);
printf("%d",x+y/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330761/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, y;
scanf("%d%d", &x, &y);
printf("%d\n", x+y/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330804/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330804/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void)
{
int X,Y;
scanf("%d %d",&X,&Y);
printf("%3.0f\n",X+0.5*Y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330848/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d",&a);
scanf("%d",&b);
printf("%d\n",a+b/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330891/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330891/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b;
scanf("%ld%ld",&a,&b);
printf("%ld",a+(b/2));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330949/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330949/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,y;
scanf("%d %d",&x,&y);
printf("%d\n",x + y / 2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330992/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
// Your code here!
int x,y;
scanf("%d %d",&x,&y);
printf("%d",x+y/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331034/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331034/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 H, W;
scanf("%d%d", &H, &W);
char s[H][W+1];
for(int i = 0; i < H; i++){
scanf("%s", s[i]);
}
int c[H][W];
for(int i = 0; i < H; i++){
for(int j = 0; j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331078/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331078/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 queue_point = 0;
int queue_size = 0;
int queue[8192];
void enqueue(int p) {
queue[queue_size++] = p;
}
int dequeue() {
if (queue_point >= queue_size) return -1;
else return queue[queue_point++];
}
int stack[4] = {-1, 0, 0, 0};
int stack_pointer = 0;
void push(int p) {
stack[stack_point... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331120/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331120/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@queue_point = dso_local lo... |
#include<stdio.h>
#include<string.h>
int main(){
char s[101],p[101],ss[202];
int i,j;
scanf("%s", s);
scanf("%s", p);
strcat(ss,s);
strcat(ss,s);
if(strstr(ss,p)) printf("Yes\n");
else printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331171/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331171/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[200];
char p[100];
scanf("%s",&s);
scanf("%s",&p);
strncat(s,s,strlen(p));
if(strstr(s,p)){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331214/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331214/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[256];
char s1[256];
char p[256];
scanf("%s",s);
scanf("%s",p);
strcpy(s1,s);
strcat(s,s1);
if(strstr(s,p) != 0)printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331265/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331265/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 lens,lenp,i,j,hante=0;
char s[101],p[101],buf[201];
scanf("%s",s);
scanf("%s",p);
lens=strlen(s);
lenp=strlen(p);
strcpy(buf,s);
strcat(buf,s);
for(i=0;i<lens;i++){
for(j=0;j<lenp;j++){
if(buf[i+j]!=p[j]) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331315/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331315/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void){
int i=0, j=0;
int cnt=0;
int s_len=0, p_len=0;
char s[100], p[100];
scanf("%s", s);
scanf("%s", p);
while(s[i] != '\0'){
s_len++;
i++;
}
i=0;
while(p[i] != '\0'){
p_len++;
i++;
}
for(i = 0; i < s_len+1; i++){
for(j = 0; j < p_len+1; j++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331366/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331366/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[100], p[100], ss[200];
scanf("%s%s", s, p);
//ss???s?????£????????????
strcat(ss, s);
strcat(ss, s);
//ss?????????p????????¨????????°?????????
if(strstr(ss, p) != NULL){
printf("Yes\n");
}else{
printf("No... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331409/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331409/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a00, a01, a10, a11, n0, n1, n, i, j;
char s[1000006];
scanf("%lld %lld %lld %lld", &a00, &a01, &a10, &a11);
for(n0 = 0; (n0*(n0-1))/2 < a00; n0++);
for(n1 = 0; (n1*(n1-1))/2 < a11; n1++);
// printf("n0= %lld n1= %lld\n", n0, n1);
if(a01 != 0 ||... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33146/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33146/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
unsigned short s_scan_sentence(unsigned char * str, unsigned short length_max);
unsigned short s_sarch_text(unsigned char * ring, unsigned short r_length, unsigned char * look, unsigned short l_length);
int main(){
unsigned char ring_text[101];
unsigned char look_text[101];
unsigned short ring_le... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331502/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331502/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.2 = private unnamed_a... |
#include<stdio.h>
#include<string.h>
int main(void)
{
int i,len;
char s[4096],p[4096],s2[4096];
scanf("%s",s);
scanf("%s",p);
sprintf(s2,"%s%s",s,s);
puts(strstr(s2,p)==NULL?"No":"Yes");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331546/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331546/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 str[100001];
scanf("%s", str);
int j = -1;
int cntA = 0;
int cntB = 0;
for(int i = 0; str[i]; ++i) {
if(str[i] == '0') {
if(j == -1) {
++cntA;
}
} else if(str[i] == '1') {
++cntB;
} ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33159/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<time.h>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
int main()
{
//97:a 122:z
int lena,lenb,i,j,flag;
char a[120],b[120];
scanf("%s",a);
scanf("%s",b);
lena=strlen(a);
lenb=strlen(b);
for(i=1;i<=lena;i++)
{
flag=0;
for(j=i;j<=lenb+i-1;j++)
if(a[j%lena]!=b[j-i])
{
flag=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331632/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331632/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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=0,j=0,x=0;
char ch,p[101]={},s[101]={};
//input p
while(1){
scanf("%c",&ch);
if(ch != '\n'){
p[i]=ch;
i++;
} else {
break;
}
}
i=0;
//input s
while(1){
scanf("%c",&ch);
if(ch != '\n'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331683/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331683/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[101], p[101], ans[101];
int len_s, len_p;
int i, j, k;
scanf("%s", s);
scanf("%s", p);
len_s = strlen(s);
len_p = strlen(p);
for (i = 0; i < len_s; i++) {
for (j = 0; j < len_p; j++) {
k = i + j;
if (k >= len_s) k -= len_s;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331733/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331733/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
int
main(void)
{
int i, j;
char str[202];
char p[101];
bool flag;
scanf("%s", str);
scanf("%s", p);
int len = strlen(str);
for (i = 0; i < len; i++)
str[len + i] = str[i];
for (i = 0; i < strlen(str); i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331777/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331777/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,ara[1010]={0},arr[1010]={0},n,m,count;
scanf("%d%d",&n,&m);
for(i=1;i<=n;i++)
scanf("%d",&ara[i]);
for(j=1;j<=m;j++)
scanf("%d",&arr[j]);
for(i=1,j=1,count=0;i<=n&&j<=m;i++)
{
if(arr[j]>=ara[i])
{
count++;
j++;
}
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33182/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
int main()
{
int i, temp, face[6];
for(i=0; i<6; i++) {
scanf("%d", &face[i]);
}
char d;
while(scanf("%c", &d)!=EOF) {
switch(d) {
case 'N':
temp=face[0];
face[0]=face[1];
face[1]=fa... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331885/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331885/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
struct sai {
int A;
};
int main(void){
int i,len;
char x[100];
struct sai r[6];
struct sai s;
for(i=0;i<6;i++){
scanf("%d",&r[i].A);
}
scanf("%s",&x);
len = strlen(x);
for(i=0;i<len;i++){
if(x[i]=='S'){
s=r[0]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331935/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331935/source.c"
target datalayout = "e-m:e-p270: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.sai = type { i32 }
... |
#include<stdio.h>
typedef struct
{
int iti;
int suuti;
} SAIKORO;
int main(void)
{
int kaisuu1, kaisuu2, kaisuu3;
char hougaku[128] = {0};
char kari1;
SAIKORO date[6];
SAIKORO kari2;
kaisuu2 = 0;
for (kaisuu1 = 0; kaisuu1 < 6; kaisuu1++)
{
date[kaisuu1].iti = kaisuu1 + 1;
//printf("%d ", date[kaisuu1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331979/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331979/source.c"
target datalayout = "e-m:e-p270: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.SAIKORO = type { i3... |
#include <stdio.h>
typedef struct
{
int iTop;
int iNorth;
int iEast;
int iSouth;
int iWest;
int iBottom;
}DICE;
void vdDiceRoll(DICE* stDice, char chOrder);
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_11_A&lang=ja
// 6面ダイスの目と、転がす方角が与えられ、最終的な上面の整数を出力
// 添え字で操作, ラベルと対応付けるため、1~6で定義
int main()... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332042/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332042/source.c"
target datalayout = "e-m:e-p270: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.DICE = type { i32, ... |
#include <stdio.h>
#include <string.h>
typedef struct
{
int MEMBER00 ;
int MEMBER01 ;
int MEMBER02 ;
int MEMBER03 ;
int MEMBER04 ;
int MEMBER05 ;
} STRUCT00 ;
int main ( )
{
STRUCT00 VAR00 ;
char VAR01 [ 100 ] ;
int VAR02 = 0 , VAR03 = 0 , VAR04 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332086/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332086/source.c"
target datalayout = "e-m:e-p270: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.STRUCT00 = type { i... |
#include<stdio.h>
int main(){
int ns,we,h,i,j,k,l,tmp;
int dice[6]={},muki[2][4]={{0,1,5,4},{0,3,5,2}};
char cmd[101]={};
for(h=0;h<6;h++)scanf("%d",&dice[h]);
scanf("%s",cmd);
for(h=0;h<100;h++){
ns=0;
we=0;
if(cmd[h]=='N')ns=1; if(cmd[h]=='S')ns=-1;
if(cmd[h]=='E')we=1; if(cmd[h]=='W')we=-1;
if(n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332136/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332136/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.muki = privat... |
#include <stdio.h>
#define N 5000
int main() {
static char s[N + 1];
static int dp[N + 1], lcp[N + 1][N + 1], ll[N];
int n, a, b, i, j;
scanf("%d%d%d%s", &n, &a, &b, s);
for (i = n - 1; i >= 0; i--)
for (j = n - 1; j >= 0; j--)
lcp[i][j] = s[i] == s[j] ? 1 + lcp[i + 1][j + 1] : 0;
for (j = 0; j < n; j++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33218/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33218/source.c"
target datalayout = "e-m:e-p270: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 [50... |
#include <stdio.h> // printf(), fgets()
#include <string.h> // memset(), memcpy()
int
count1(int c[10])
{
int i;
int k = 0;
for (i = 1; i <= 9 - 2;)
{
if (c[i] >= 1 && c[i + 1] >= 1 && c[i + 2] >= 1)
{
c[i]--; c[i + 1]--; c[i + 2]--;
k++;
}
else
i++;
}
return k;
}
int
count2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332244/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdint.h>
// 11*100000
#define BUF_SIZE 1200000
int get_int(void) {
int num;
#ifdef BUF_SIZE
char line[BUF_SIZE];
if(!fgets(line, BUF_SIZE, stdin)) return 0;
sscanf(line, "%d", &num);
#else
#error
#endif
return num;
}
// <arr[0]> <arr[1]>... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332295/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332295/source.c"
target datalayout = "e-m:e-p270: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>
#define NAMELEN 128
#define NO 0
#define YES 1
int cmp(char S[]){
int i;
for(i=0;S[i]!='\0';i++){
if(i%2==1)
if(S[i]=='R')
return NO;
if(i%2==0)
if(S[i]=='L')
return NO;
}
return YES;
}
int main(void){
char S[NAMELEN];
scanf("%s",S);
if(cmp(S)==NO)
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332345/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332345/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[101];
int num;
int i;
int len;
num = scanf("%s", s);
if(num != 1)
return (0);
len = strlen(s);
for(i=0; i<len; i++)
{
if(i % 2 == 0)
{
if(s[i] == 'L')
{
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332402/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
char str[105];
int find=1,i;
unsigned int a;
scanf("%s",str);
a=strlen(str);
for(i=0;i<a;i+=2)
{
if(str[i]=='L')
{
find=0;
break;
}
}
if(find==1){for(i=1;i<a;i+=2)
{
if(str[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332446/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 "battis.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main() {
int n;
int v;
scanf("%d", &n);
scanf("%d", &v);
int i;
int j;
int tank = 0;
int cost = 0;
for (i = 1; i <=n; i++) {
while (tank < n - i && tank < v) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33249/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33249/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//
// Created by botayhard on 16.02.19.
//
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
int main(){
int n,v,q,b=0,s=0;
scanf("%d %d", &n,&v);
for(int i=1;i<n;i++){
if (b<n-i){
if(n-i>v){q=v-b;}
else{q=n-i-b;}
// printf("%d\n",q);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33254/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33254/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdbool.h>
#include <math.h>
#include <time.h>
#define REP(i,n) for(i=0;i<n;i++)
#define ll long long
int main(void){
char s[100];
int i;
bool yn=1;
scanf("%s",&s[0]);
for(i=0;i<strlen(s);i=i+2){
if(s[i]=='L') yn=0;
}
for(i=1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332590/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 s[1000];
int i,f;
scanf("%s", s);
f = 1;
for(i = 0;s[i] != '\0';i ++){
if(i % 2 == 0){
if(s[i] == 'L'){
f = 0;
break;
}
}
else if(i % 2 != 0){
if(s[i] == 'R'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332633/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332633/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define N_MAX 100000
#define Q_MAX 100000
#define A_MAX 0x7FFFFFFF
typedef unsigned int _uint;
typedef unsigned short _ushort;
typedef struct{
_ushort com;
_uint x;
_uint y;
}Que;
void que_operator(Que que, _uint n);
int main(void)
{
_uint n, q;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332677/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332677/source.c"
target datalayout = "e-m:e-p270: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 { i16, i... |
#include<stdio.h>
int main()
{
int i, v, l, m, n;
scanf("%d %d", &n, &v);
if(v == n-1)
{
printf("%d\n", v);
}
else if(v>=n) printf("%d\n", n-1);
else
{
m = v;
l = v;
for(i=2; i<=n; i++)
{
l++;
m += i;
if(l == n-1) break;
}
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33272/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, A, B;
scanf("%d %d %d", &N, &A, &B);
int X;
X = A * N;
if(X <= B){printf("%d", X);}
else{printf("%d", B);}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332763/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332763/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,A,B,result;
scanf("%d %d %d",&N,&A,&B);
result = N*A;
//printf("%d,%d\n",result,B);
if(result < B) printf("%d\n",result);
else printf("%d\n",B);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332806/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332806/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
#include <stdlib.h>
#include <stdbool.h>
#define MOD 1000000007
#define INFTY 2147400000
#define END printf("\n");return 0;
#define QS09(how_data,data) qsort(data,how_data,sizeof(long),(int (*)(const void *,const void *))qsort_09);
#define QS9... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332907/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332907/source.c"
target datalayout = "e-m:e-p270: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._GD = type { i64, i... |
#include<stdio.h>
int main()
{
int N,A,B;
int m=1,t;
scanf("%d%d%d",&N,&A,&B);
if(N>=1&&N<=20&&A>=1&&A<=100&&B>=1&&B<=2000)
{
m=N*A;
if(m>B)
{
t=B;
B=m;
m=t;
}
}
printf("%d",m);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332958/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 min(int a, int b) { return a < b ? a : b; }
int max(int a, int b) { return a > b ? a : b; }
int main()
{
int x, y, z, i, j, k, a, b, c, n, m, t, l, r;
scanf("%d",&t);
while(t--)
{
scanf("%d %d", &l, &r);
if(l == r)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33300/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k,a,b;
scanf("%d", &k);
scanf("%d %d", &a, &b);
for(int i = a; i <= b; i++){
if(i %k == 0){
puts("OK");
return 0;
}
}
puts("NG");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333050/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333050/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 NUM 10
int main(){
int x,x1,x2,i;
int cnt=0;
scanf("%d",&x);
scanf("%d %d",&x1,&x2);
for(i=x1;i<=x2;i++){
if(i%x==0){
cnt++;
}
}
if(cnt>0){
printf("OK");
}else{
printf("NG");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333094/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333094/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main() {
int k, a, b;
scanf("%d %d %d", &k, &a, &b);
if (a % k == 0) {
printf("OK");
} else {
int sho = a / k;
sho++;
//printf("%d\n",sho);
if (sho * k >= a && sho*k<=b) {
printf("OK")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333137/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k, a, b,s;
scanf("%d", &k);
scanf("%d%d", &a, &b);
s=(b / k) * k;
if (a <= s) {
puts("OK");
}
else {
puts("NG");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333180/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333180/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif
int main(void){
uint32_t k, a, b;
scanf("%"SCNu32"%"SCNu32"%"SCNu32,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333223/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k,a,b;
scanf("%d",&k);
scanf("%d %d",&a,&b);
int i,x;
x=0;
for(i=1;x<a;++i){
x=k*i;
}
if(x<=b){
printf("OK\n");
}else{
printf("NG\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333267/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef unsigned long long int ulli;
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int l,c,r;
scanf("%d %d",&l,&r);
if(l<=r/2+1)
c=r%(r/2+1);
else
c=r%l;
printf("%d\n",c);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33331/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i, A, B, K ;
scanf("%d%d%d" ,&K, &A, &B);
i=A/K;
if( K*(i+1)>=A && K*(i+1)<=B){
printf("OK");
}else if(K*i==A){
printf("OK");
}else{
printf("NG");
};
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333353/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int K, A, B, i, j;
scanf("%d", &K);
scanf("%d %d", &A, &B);
if((K >= 1 && K <= 1000) && (A >= 1 && A <= 1000) && (B >= 1 && B <= 1000)){
for(i = 1; i <= 1000; i++){
j= K*i;
if(j >= A && j <= B){
break;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333397/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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--)
{
long l,r,ans;
scanf("%ld %ld", &l,&r);
if(l>(r/2))
printf("%ld\n", r%l);
else
printf("%ld\n", (r)%((r/2)+1));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33344/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33344/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.