Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
#include<string.h>
int main(void)
{
char s[100], p[100], a[200];
scanf("%s",s);
strcpy(a,s);
strcat(a,s);
scanf("%s",p);
if(strstr(a,p)){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331755/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331755/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rot[5][7] = {
{0,1,2,3,4,5,6},{0,2,6,3,4,1,5},{0,4,2,1,6,5,3},{0,3,2,6,1,5,4},{0,5,1,3,4,6,2}};
int assign[7]; // サイコロの1~6の各面に割り当てる数字
int tr['Z'];
void dice_init(int *a)
{
int i;
int t[5] = {0,'N','E','W','S'};
for (i = 1; i <= 6; i++) assign[i] = a[i];
for (i = 1; i <= 4; i++) tr[t[i]] = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331799/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331799/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@rot = dso_local local_unna... |
#include<stdio.h>
int main(void)
{
int D[6],i,Top,Front,Right,t;
char X[100];
for(i=0;i<6;i++){scanf("%d",D+i);}
scanf("%s",X);
Top=1;Front=2;Right=3;
for(i=0;X[i];i++)
{
switch(X[i])
{
case 'N':t=Top,Top=Front,Front=7-t;break;
case 'E':t=Right,Right=Top,Top=7-t;break;
case 'W':t=Top,Top=Right,Right... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331856/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331856/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char B[101];
int A[10];
void Search(int num);
int main(void){
int i,n,len;
char str[100],*line;
fgets(str,sizeof(str),stdin);
line = strtok(str," ");
sscanf(line,"%d",&n); A[1]=n;
for(i=2;i<=6;i++){
line = strtok(NULL," ");
sscanf(line,"%d",&n); A[i]=n;
}
scanf("%s",B... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331913/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331913/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
#include<string.h>
void makecopy(int *saikoro,int *copy){
int i;
for(i=1;i<=6;i++){
copy[i]=saikoro[i];
}
}
int main(){
int *saikoro,*copy,i;
saikoro=malloc(7*sizeof(int));
copy=malloc(7*sizeof(int));
for(i=1;i<=6;i++) scanf("%d",&saikoro[i]);
makecopy(saikor... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331957/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331957/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <string.h>
#include <stdio.h>
typedef struct _DICE DICE;
struct _DICE{
int a[6];
char b[101];
};
int main(int argc, const char * argv[]) {
DICE Dice;
int i,j,length;
int a0,a1,a2,a3,a4,a5;
for(i=0;i<6;i++){
scanf("%d",&Dice.a[i]);
}
scanf("%s",Dice.b);
l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332020/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332020/source.c"
target datalayout = "e-m:e-p270: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 { [6 x... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void rollDice(int faceNumber[], char cmdNow){
switch(cmdNow){
int temp;
case 'E':
temp = faceNumber[1];
faceNumber[1] = faceNumber[4];
faceNumber[4] = faceNumber[6];
faceNumber[6] = faceNumber[3];
faceNumber[3] = temp;
return;
case 'N':
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332064/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d[6],i,blank;
char ENSW[100];
for(i = 0; i < 6; i++){
scanf("%d",&d[i]);
}
scanf("%s",ENSW);
for(i = 0; ENSW[i] != '\0'; i++){
if(ENSW[i] == 'N'){
blank=d[0];
d[0]=d[1];
d[1]=d[5];
d[5]=d[4];
d[4]=blank;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332107/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332107/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef struct{
int surface[6];
}Dice;
void move_dice(Dice *d,char c){
int temp = d->surface[0];
if(c == 'N'){
d->surface[0] = d->surface[1];
d->surface[1] = d->surface[5];
d->surface[5] = d->surface[4];
d->surface[4] = temp;
}
else if(c == 'E'){
d-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332158/source.c"
target datalayout = "e-m:e-p270: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 { [6 x ... |
#include <stdio.h>
#include <stdlib.h>
int main(){
int N, i, j, ans;
scanf("%d", &N);
int *p = (int *)malloc(sizeof(int) * (N + 1));
int *have_pair = (int *)malloc(sizeof(int) * (N + 1));
p[0] = -1;
for(i = 1; i <= N; i++){
scanf("%d", &p[i]);
}
for(i = 1; i <= N; i++){
for(j = 0; j <= N; j++){
have_pai... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 0043
*
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0043
*
*/
#include <stdio.h>
#include <memory.h>
#include <assert.h>
#define false 0
#define true 1
#define DEBUG 0
int lessthan5times(char* buf){
int i;
int count[10];
memset(count, 0, sizeof(count));
while(*buf){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332266/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332266/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 descending_compare(const void *a, const void *b){
if (*(int*)a > *(int*)b){
return -1;
}else if (*(int*)a == *(int*)b){
return 0;
}else{
return 1;
}
}
int ascending_compare(const void *a, const voi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332323/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332323/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,len,check=0;
char s[101];
scanf("%s",&s);
len=strlen(s);
for(i=0;i<len;i++){
if(s[i]=='L' && i%2==0)
check=1;
else if(s[i]=='R' && i%2==1)
check=1;
}
if(check==1)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332374/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332374/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 tap[128];
int i=0;
int len;
int count=0;
scanf("%s",tap);
len=strlen(tap);
for(i=0;i<len;i++)
{
if(count%2==0)
{
if(tap[i]=='L')
{
printf("No\n");
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332424/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101];
int flag=0;
scanf("%s",str);
for(int i=0;str[i]!='\0';i+=2)
{
if(str[i]=='L')
flag++;
}
for(int i=1;str[i]!='\0';i+=2)
{
if(str[i]=='R')
flag++;
}
if(flag==0)
printf("Yes");
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332468/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100];
int check=1, i;
scanf("%s", S);
for(i=0; S[i] != '\0'; i++){
if(i % 2 == 0){ //奇数文字目
if(S[i]!='R' && S[i]!='U' && S[i]!='D'){
check = 0;
}
}
else{
if(S[i]!='L' && S[i]!='U' && S[i]!='D'){
check = 0;
}
}
}
if(check... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332510/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332510/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101];
int n;
int flg = 1;
int i=0;
scanf("%s",S);
n = (unsigned)(sizeof(S)/sizeof(S[0]));
//printf("%d",n);
while(S[i]!=NULL){
//for(int i=0; i<n; i++){
if(i%2 ==0){
if(S[i]!='R' && S[i]!='U' && S[i]!='D')flg = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332561/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332561/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101];
int check = 0;
scanf("%s", s);
int i;
for(i = 1; s[i]; i += 2){
if(s[i] == 'R'){
check = 1;
break;
}
}
for(i = 0; s[i]; i += 2){
if(s[i] == 'L'){
check = 1;
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332611/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, char *argv[])
{
char step[101];
int i;
scanf("%s", step);
for (i=0; i<strlen(step); i++) {
if (i%2==1) {
if (step[i]!='L' && step[i]!='U' && step[i]!='D') {
printf("No\n");
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX 2147483647
#define NMAX 100001
int find(int A[],int x,int y){
int i;
int min=MAX;
for(i=x;i<=y;i++){
if(A[i]<=min){min=A[i];}
}
return min;
}
int main(){
int n,q,i;
int com,x,y;
int A[NMAX];
int C[NMAX];
scanf("%d %d",&n,&q);
for(i=0;i<n;i++)A[i]=MAX;
for(i=0;i<q;i++)C[i]=-1;
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
scanf("%d%d%d",&n,&a,&b);
if(n*a<b) printf("%d\n",n*a);
else printf("%d\n",b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332741/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332741/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, A, B;
scanf("%d %d %d", &N, &A, &B);
int res = A * N < B ? A * N : B;
printf("%d\n", res);
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332785/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332785/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d %d",&a,&b,&c);
if(a*b<c){
d=a*b;
}else{
d=c;
}
printf("%d",d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332835/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332835/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,mt;
scanf("%d %d %d",&n,&a,&b);
mt=n*a;
if(mt<b)
{
printf("%d\n",mt);
}
else
{
printf("%d\n",b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332879/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cal(n,a,b) ((n*a>b) ? b : n*a)
int main(){
int n,a,b;
scanf("%d %d %d",&n,&a,&b);
printf("%d\n",cal(n,a,b));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332936/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332936/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l,r;
scanf("%d %d",&l,&r);
int temp,rem;
temp = r-l;
if(temp/l < 1){
rem = temp;
printf("%d\n",rem);
}
else if(temp/l >= 1){
rem = ((r+1)/2) - 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33298/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33298/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 %d %d",&K,&A,&B);
int L=A;
int sw=0;
while(L<=B){
if(L%K==0){
sw=1;
}
L=L+1;
}
if(sw==1){
printf("OK\n");
}else{
printf("NG\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333029/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333029/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
int main(){
int k, a, b;
bool judge = false;
scanf("%d", &k);
scanf("%d %d", &a, &b);
for(int i=a; i<=b; i++){
if(i % k == 0){
judge = true;
}
}
if(judge){
printf("OK\n");
} else {
printf("NG\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333072/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333072/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t;
scanf("%d",&t);
int a,b;int c=0;
scanf("%d%d",&a,&b);
for(int i=a;i<=b;i++)
{
if(i%t==0)
{
++c;break;
}
}
if(c==0)
printf("NG");
else
printf("OK");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333115/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333115/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,a,b;
int flag=0;
scanf("%d",&k);
// printf("k=%d\n",k);
scanf("%d %d",&a,&b);
// printf("a=%d b=%d\n",a,b);
// printf("flag=%d\n",flag);
for (int i=1;i<=1000;i++){
if (k*i>=a && k*i<=b){
// printf("i=%d ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333159/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
double k, a, b, i;
double aa, bb;
int c = 0;
scanf("%lf", &k);
scanf("%lf", &a);
scanf("%lf", &b);
aa = a / k;
bb = b / k;
for(i = 1; i <= 1000; i++){
if(i >= aa && i <= bb){
c = 1;
}
}
if(c == 0){
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333201/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int A,B;
scanf("%d",&K);
scanf("%d %d",&A,&B);
for(int i=A;i<=B;i++){
if(i%K==0){
printf("OK\n");
return 0;
}else if(i%K!=0){
}
}
printf("NG\n");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333245/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i;
scanf("%d",&K);
scanf("%d",&A);
scanf("%d",&B);
for(i=A; i<=B; i++){
if(i % K == 0){
printf("OK\n");
return 0;
}
}
printf("NG\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333289/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
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_333331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333331/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,a,b;
scanf("%d%d%d",&k,&a,&b);
for(i=b;i>=a;i--){
if(i%k){
}else{
printf("OK");
return 0;
}
}
printf("NG");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333375/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333375/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,total=0,c=0;
scanf("%d",&k);
scanf("%d %d",&a,&b);
for(int i=1; i<1000; i++){
total=0;
total=k*i;
if(total>=a&&total<=b){
c++;
break;
}
}
if(c>=1)puts("OK");
else puts("NG");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333418/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333418/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,c;
c=0;
scanf("%d",&k);
scanf("%d %d",&a,&b);
for(i=a;i<=b;i++){
if(i%k==0){
printf("OK\n");
c=1;
break;
}
}
if(c==0){
printf("NG\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333461/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,flag=0;
scanf("%d",&k);
scanf("%d %d",&a,&b);
for(i=a;i<=b;i++)
{
if(i%k==0)
{
flag=1;
break;
}
}
if(flag==1)
printf("OK");
else
printf("NG");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333504/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define max 1000
//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, const void *b){return *(int*)b - *(int*)a;}
int count_digit(int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333548/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,a,b;
int main(){
scanf("%d%d%d",&k,&a,&b);
for(;a<=b;a++){
if(a%k==0){
puts("OK");
return 0;
}
}
puts("NG");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333591/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define Mod 200003
typedef struct {
double Re, Im;
} complex;
complex sum_complex(complex x, complex y)
{
complex z;
z.Re = x.Re + y.Re;
z.Im = x.Im + y.Im;
return z;
}
complex prod_complex(complex x, complex y)
{
complex z;
z.Re = x.Re * y.Re - x.Im *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333634/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333634/source.c"
target datalayout = "e-m:e-p270: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.complex = type { do... |
#include <stdio.h>
int main(){
double a,b,c;
scanf("%lf",&a);
scanf("%lf",&b);
scanf("%lf",&c);
double result;
result = a / c;
if(result <= b){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333678/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333678/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d, t, s;
scanf("%d %d %d", &d, &t, &s);
if(t*s >= d)
printf("Yes\n");
else
printf("No\n");
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333728/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d, t, s;
scanf("%d %d %d", &d, &t, &s);
if(((double)d / (double)s) <= t) puts("Yes");
else puts("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333771/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include<math.h>
int main(){
int d, s, t;
scanf("%d %d %d", &d, &s, &t);
long long eq= t*s;
if (eq>=d)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333814/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333814/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d, t, s;
scanf("%d %d %d", &d, &t, &s);
(d > t * s) ? printf("No") : printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333858/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333858/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
float d,t,s,r;
scanf("%f %f %f", &d, &t, &s);
r = d/s;
if (r <= t) {
printf("Yes");
}
else {
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d, t, s;
float ans;
scanf("%e %e %e",&d,&t,&s);
ans = t * s;
if (ans >= d)
printf("Yes");
else
printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333951/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d,t,s;
scanf("%d %d %d",&d,&t,&s);
if (t*s>=d)
printf("Yes");else
printf("No");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333995/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&n);
while(n--){
scanf("%d %d",&a,&b);
a%=b;
if(a)printf("%d\n",a);
else printf("%d\n",b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334037/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334037/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, K, P, W;
scanf("%d", &N);
for(i=0;i < N;i++){
scanf("%d %d", &K, &P);
if(K > P){
W = K % P;
if(W != 0)
printf("%d\n", W);
else
printf("%d\n", P);
}else
printf("%d\n", K);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334080/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334080/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K[100],P[100],a[100];
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d %d",&K[i],&P[i]);
if(P[i]>K[i]){
a[i]=K[i];
}
else if(K[i]%P[i]==0){
a[i]=P[i];
}
else{
a[i]=K[i]%P[i];
}
}
for(i=0;i<N;i++){
printf("%d\n",a[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334123/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 key[1000];
int i=0;
scanf("%s", key);
while(key[i] != '\0'){
if(key[i] >= 'D') printf("%c", key[i]-3);
else printf("%c", key[i]+23);
++i;
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334167/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334167/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m;
scanf("%d",&m);
while(m--)
{
int n;
scanf("%d",&n);
int q[499999]={0},k,m=0;
for(int i=0;i<n;i++)
{
scanf("%d",&k);
if(m<k) m=k;
q[k]++;
if(q[k]>=2)
{
q[k]--;
q[k+1]++;
}
}
k=0;
for(int i=1;i<=m+10;i++)
{
if(q[i]) k++;
}
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33421/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33421/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 table[26] = {'X','Y','Z','A','B','C','D','E','F','G','H','I','J', 'K','L','M','N','O','P','Q','R','S','T','U','V','W'};
char input[1001];
scanf("%s",input);
char c = input[0];
int i;
for(i=0; c!='\0'; i++){
printf("%c",table[(c-65)]);
c=input[i+1];
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334253/source.c"
target datalayout = "e-m:e-p270: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.table = priva... |
#include <stdio.h>
int main(){
char str[1001];
char *p;
scanf("%s\n",str);
p=str;
while(*p!='\0'){
if(*p>='D'){
*p-=3;
} else {
*p+=23;
}
p++;
}
printf("%s\n",str);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334325/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334325/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 abs(int x){
if(x>0) return x;
else return -x;
}
long long factorial(int x){
if(x==0) return 1;
else return x*((factorial(x-1))%1000000007)%1000000007;
}
long long combi(int m, int n){
if(abs(m-n)>=2){
return 0;
}else if(abs(m-n)==1){
return (factorial(m)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334376/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334376/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 2656 Taps
// 2018.4.6 bal4u
#include <stdio.h>
#include <string.h>
#include <math.h>
//#define getchar_unlocked() getchar()
int in()
{
int n = 0, c = getchar_unlocked();
do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
return n;
}
#define EPS 1e-6
#define EQ(a,b) (fabs((a)-(b))<EPS)
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334426/source.c"
target datalayout = "e-m:e-p270: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>
int main(void)
{
int ar[51] = { 0 };
int treex[50];
int result[100] = { 0 };
int trees;
int tests;
int i, j, k;
int dis;
scanf("%d", &tests);
for (i = 0; i < tests; i++)
{
scanf("%d", &trees);
for (j = 0; j < trees; j++)
scanf("%d", &treex[j]);
for (j = 0; j < trees - 1; j++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33447/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 digit(int nb)
{
int sum = 0;
while (nb > 0)
{
sum += nb % 10;
nb /= 10;
}
return (sum);
}
int main(void)
{
int N,a,b;
scanf("%d%d%d",&N,&a,&b);
int i = 1;
int sum = 0;
while (i <= N)
{
if (digit(i) >= a && digit(i) <= b)
sum += i;
i++;
}
printf("%d\n", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334512/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334512/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 findSumOfDigits(int n){
int sum=0;
while(n>0){
sum += n%10;
n /= 10;
}
return sum;
}
int main(){
int N, A, B;
scanf("%d %d %d", &N, &A, &B);
int total = 0;
for (int i =1; i <=N ; ++i) {
int sum = findSumOfDigits(i);
if(sum>=A && su... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334556/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334556/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <math.h>
#include <time.h>
#define REP(i,n) for(i=0;i<n;i++)
#define ll long long
int sum(int N){
int ans = 0;
while(N > 0){
ans += N % 10;
N = N / 10;
}
return ans;
}
int main(void){
int i;
int N, A, B;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334606/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 T;
scanf("%d",&T);
int k;
for(k=0;k<T;k++)
{
int n;
int a[55];
scanf("%d",&n);
int i,j;
for(i=0;i<n;i++)
scanf("%d",&a[i]);
int c[10000];
int q=0;
for(i=0;i<n;i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33465/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33465/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, b, n, sum = 0, temp = 0, t;
scanf("%d %d %d", &n, &a, &b);
for(int i = 1; i <= n; i++){
t = i;
while(t / 10 || t % 10){
temp += t % 10;
t /= 10;
}
if(temp >= a && temp <= b){
sum += i;
}
temp = 0;
}
printf("%d", sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334693/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334693/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b;
int main()
{
int c,d,e,f,g,h,i,n,z,sum=0;
scanf("%d%d%d",&z,&a,&b);
for(n=1;n<=z;n++)
{
if(n<10)
{
g=n;
}
else if(n>=100&&n<1000)
{
c=n%10;d=n/10;e=d%10;f=d/10;
g=c+e+f;
}
else if(n>=10&&n<100)
{
c=n%10; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334743/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, a, b, i, j, x;
int sum1=0, sum2=0;
scanf("%d", &n);
scanf("%d", &a);
scanf("%d", &b);
for(i=1; i<=n; i++){
sum1 = 0;
x = i;
for(j=0; j<10; j++){
sum1 = sum1 + (x % 10);
x = x / 10;
}
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334787/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
int len[1000001];
int main()
{
int n, a, b, c, d;
long long int max = 0;
scanf("%d", &n);
a = n;
while(a--){
scanf("%d", &b);
len[b]++;
}
a = b = c = d = 0;
for(int i = 1000000; i >= 2; i--){
if(c){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33483/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,B;
scanf("%d %d",&A,&B);
if(A==1 && B==2)
printf("3");
else if(A==1 && B==3)
printf("2");
else if(A==2 && B==3)
printf("1");
else if(A==2 && B==1)
printf("3");
else if(A==3 && B==1)
printf("2");
else if(A==3 && B==2)
printf("1"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334873/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334873/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&A,&B);
if(A==3 && B==1 || A==1 && B==3)
{
printf("2");
}
else if(A==1 && B==2 || A==2 && B==1)
{
printf("3");
}
else if(A==3 && B==2 || A==2 && B==3)
{
printf("1");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,ans=0,i;
long c[26];
char a[1000000];
scanf("%ld",&n);
scanf("%s",a);
n=2*n-2;
for(i=0;i<26;i++)
{
c[i]=0;
}
for(i=n-1;i>=0;i--)
if(a[i]<93)
c[a[i]-65]++;
else
{
if(c[a[i]-97]!=0)
c[a[i]-97]--;
}
for(i=0;i<26;i++)
ans+=c[i];
printf("%ld... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33496/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33496/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b;
scanf("%d%d",&a,&b);
if(a+b==3){
printf("3");
}else if(a+b==4){
printf("2");
}else{
printf("1");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&A);
scanf("%d",&B);
if((A==2&&B==3)||(A==3&&B==2))
{
printf("1\n");
}
else if((A==1&&B==2)||(A==2&&B==1))
{
printf("3\n");
}
else
{
printf("2\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
int main (void) {
int a, b;
scanf("%d%d", &a, &b);
if ( a+b == 3 )
printf("3\n");
else if ( a+b == 4 )
printf("2\n");
else if ( a+b == 5 )
printf("1\n");
else
assert(0);
return EXIT_SUCCESS;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",6-a-b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335139/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200005],temp;
scanf("%s",s);
int x,n,i,j,k,c,a[200005]={0},b,m;
n=strlen(s);
scanf("%d",&m);
for(i=0;i<m;i++)
{
scanf("%d",&x);
a[x-1]++;
}
int state=0;
for(i=0;i<=(n-1)/2;i++)
{
if(state==0 && a[i]%2==1)
{
temp=s[i];
s[i]=s[n-i-1];
s[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33519/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,b,c,i;
scanf("%d%d",&a,&b);
for(i=1;i<4;i++){
if(i==a||i==b) continue;
else{
printf("%d",i);
break;
}
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335232/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 miss1,miss2;
char str[64];
fgets(str,sizeof(str),stdin);
sscanf(str,"%d",&miss1);
fgets(str,sizeof(str),stdin);
sscanf(str,"%d",&miss2);
switch (miss1)
{
case 1:
if(miss2 == 2)
{
puts("3");
}else
{
puts("2");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335276/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335276/source.c"
target datalayout = "e-m:e-p270: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>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#define pai 3.1415926535
#define N 10
int main(void) {
int A, B;
scanf("%d%d", &A, &B);
if ((A == 1) && (B == 2) || (A == 2) && (B == 1)) {
printf("%d", 3);
}
else if ((A == 1) && (B == 3) || (A == 3) && (B == 1)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335319/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335319/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 GETINT(X) scanf("%d",&X)
#define GETLL(X) scanf("%lld",&X)
typedef long long int LL;
int main()
{
int n;
char arr[200005];
int hash[26];
memset(hash,0,sizeof(hash));
scanf("%d",&n);
scanf("%s",arr);
int i;
int count=0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33537/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 2809: Graduation Ceremony
// 2018.1.4 bal4u@uu
#include <stdio.h>
#define min(a,b) ((a)<=(b)?(a):(b))
#define max(a,b) ((a)>=(b)?(a):(b))
#define MAX 2002
char s[MAX];
short u[MAX], d[MAX], l[MAX], r[MAX];
int dx[4] = { 0,1,0,-1}; // URDL
int dy[4] = {-1,0,1, 0};
int tr['Z'];
int main()
{
int k, i, j, j2, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335412/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335412/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dx = dso_local local_unnam... |
#include<stdio.h>
int main(){
int S;
scanf("%4d", &S);
if((S/100 <= 12 && S/100 >= 1)&&(S % 100 < 1 || S % 100 > 12))
{
printf("MMYY");
} else if((S/100 < 1 || S/100 > 12)&&(S % 100 <= 12 && S % 100 >= 1))
{
printf("YYMM");
} else if( S/100 <=12 && S/100 >= 1 && S % 100 <= 12 && S % 100 >= 1)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335456/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335456/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int d;
int i;
scanf(" %d %d", &k, &d);
if (k == 1 && d == 0) {
printf("0\n");
} else if (k != 0 && d == 0) {
printf("No solution\n");
} else {
for (i = 1; i < k; i++) {
printf("9");
}
printf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3355/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3355/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 m;
char s[4];
int main(void)
{
scanf("%s", s);
if (s[0] == '0' && s[1] >= '1' || s[0] == '1' && s[1] <= '2')
{
m = 1;
}
else
{
m = 2;
}
if (m == 1)
{
if (s[2] == '0' && s[3] >= '1' || s[2] == '1' && s[3] <= '2')
{
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335557/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335557/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&n);
char a[1000000];
int i=0,j;
int count=0;
scanf(" %s",a);
int l=strlen(a);
int b[26];
for(i=0;i<26;i++)
b[i]=0;
i=0;
while(i<l)
{
int x,y,p=0;
x=a[i];
y=a[i+1];
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33560/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <unistd.h>
#include <string.h>
#include <stdio.h>
int main(int argc, char const *argv[]) {
int N;
scanf("%d\n", &N);
int a,b;//00~99,01~12
a = N/100;
b = N%100;
if(a > 0 && a < 13){
if(b > 0 && b < 13){
printf("AMBIGUOUS");
} else {
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335643/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335643/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#define MOD 998244353
#define MAX(a,b) (a>b?a:b)
#define MAX3(a,b,c) MAX(a,MAX(b,c))
#define MIN(a,b) (a<b?a:b)
#define MIN3(a,b,c) MIN(a, MIN(b,c))
typedef long long lli;
int cmp(const void *a, const void *b) {
return *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335687/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
int cnt[3000000];
int p[200005];
int out[200005];
int main() {
p[1] = 2; p[2] = 3; p[3] = 5; p[4] = 7; p[5] = 11;
int tmp = 6;
for (int i = 13; i < 2760000; i+=2) {
for (int j = 1; j < i; j++) {
if (i%p[j] == 0) break;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33573/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33573/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unnamed_... |
#include <stdio.h>
int main(void){
int a, b;
scanf("%d%d", &a, &b);
if(a == 1 && b == 1){
printf("Draw");
}else if(a == 1){
printf("Alice");
}else if(b == 1){
printf("Bob");
}else if(a > b){
printf("Alice");
}else if(a < b){
printf("Bob");
}else{
printf("Draw");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335780/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335780/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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==1) a=14;
if (b==1) b=14;
if (a>b) {
printf("Alice\n");
} else if (a<b) {
printf("Bob\n");
} else {
printf("Draw\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335823/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335823/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(A==1){
A=14;
}
if(B==1){
B=14;
}
if(A>B){
printf("Alice");
}else if(A<B){
printf("Bob");
}else{
printf("Draw");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335867/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335867/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1005]={};
unsigned long long int str[1005],count[1005]={},i,q,s;
scanf("%llu",&q);
for(i=0;i<q;i++)
{
scanf("%llu",&str[i]);
s=str[i];
while(s>1)
{
if(s%2==0)
{
s=s/2;
++count... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33591/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 A;
int B;
scanf("%d",&A);
scanf("%d",&B);
if(A==1 ) A=14;
if(B==1) B=14;
if(A>B) printf("Alice");
else if(A<B) printf("Bob");
else printf("Draw");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335953/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335953/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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==1){
a=14;
}
if(b==1){
b=14;
}
if(a>b){
printf("Alice\n");
}else if(a<b){
printf("Bob\n");
}else{
printf("Draw\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335997/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335997/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 == 1 && b != 1|| a > b && b != 1)
{
printf("Alice\n");
}else if(b == 1 && a != 1|| a < b && a != 1){
printf("Bob\n");
}else{
printf("Draw\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336039/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336039/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t, n, i, j, c = 0;
scanf("%lld", &t);
while (t--)
{
scanf("%lld", &n);
while(1){
if (n == 1){
printf("%lld\n", c);
c=0;
break;}
if (n % 2 == 0)
{
n = n / 2;
c++;
}
else if (n % 3 == 0)
{
n = (2 * n) / 3;
c++;
}
else if (n %... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33609/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33609/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
long long n;
scanf("%lli",&n);
long long query[n];
long long r[n];
for(int i = 0; i < n; i++)
{
r[i] = 0;
scanf("%lli",&query[i]);
if(query[i] == 1)
r[i] = 0;
else if(query[i]%2 == 0 || query[i]%3 == 0 || query[i]%5 =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33614/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33614/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,t,n,a[100];
for(x=0;x<4;x++){
scanf("%d %d",&t,&n);
if(t==1){
a[x]=n*6000;
}
else if(t==2){
a[x]=n*4000;
}
else if(t==3){
a[x]=n*3000;
}
else if(t==4){
a[x]=n*2000;
}
}
for(x=0;x<4;x++){
printf("%d\n",a[x]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336190/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336190/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,i,p[100]={0};
for(i=0;i<4;i++){
scanf("%d %d",&a,&b);
if(a==1)
p[i]=6000*b;
else if(a==2)
p[i]=4000*b;
else if(a==3)
p[i]=3000*b;
else if(a==4)
p[i]=2000*b;
}
for(i=0;i<4;i++)
printf("%d\n",p[i]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336233/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336233/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 did=0;
int price;
int n10,n50,n100,n500;
int t10,t50,t100,t500;
int pay,back;
int b10,b50,b100,b500;
int now,min;
int r10,r50,r100,r500;
while(1) {
scanf("%d",&price);
if(price==0)break;
if(did)putchar('\n');
scanf("%d%d%d%d",&n10,&n50,&n100,&n500);
min=10000;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336299/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336299/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <inttypes.h>
int32_t n, m;
int32_t a[1000000];
int64_t imos[1000000];
int64_t ruiseki_minus[1000000];
int main(void) {
int32_t i;
int64_t honrai = 0;
int64_t max_sakugen = 0;
int64_t current_honrai;
if (scanf("%"SCNd32"%"SCNd32, &n, &m) != 2) return 1;
for (i = 0; i < n; i++) {
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336341/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336341/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.