Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(){
char p[101],s[101];
int i=0,j=0,k=0,l=0,m=0;
int ans=0;
for(i=0; i<101; i++){
scanf("%c",&s[i]);
if(s[i]=='\n')break;
}
for(j=0; j<101; j++){
scanf("%c",&p[j]);
if(p[j]=='\n')break;
}
for(k=0;k<i;k++){
if(s[k]==p[0]){
for(l=0; l<j; l++){
m=k+l;
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331539/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331539/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[210];
char t[110];
int main(){
scanf("%s%s",s,t);
memcpy(s+strlen(s),s,strlen(s));
puts(strstr(s,t)?"Yes":"No");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331582/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331582/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define LIMIT 128
int main() {
char s[LIMIT*2];
char p[LIMIT];
for (int i=0; i<LIMIT; ++i) {
s[i] = '\0';
}
fgets(s, LIMIT, stdin);
char *ln = strchr(s, '\n');
if (ln != NULL) {
*ln = '\0';
}
for (int i=0; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331625/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331625/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main() {
char a;
char ch[120];
char c[120];
char b[120];
int i,j,k,l,m,n,o;
m = 0;
n = 0;
i=0;
l=0;
while(1) {
scanf("%c",&a);
if(a == '\n') {
break;
}
ch[i] = a;
i=i+1;
}
j=0;
while(1) {
scanf("%c",&a);
if(a == '\n') {
break;
}
c[j] = a;
j +=1;
}
/*??????????????§??\??????*/
for(k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331676/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331676/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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],p[101],obj[201];
scanf("%s",s);
scanf("%s",p);
obj[0]='\0';strcat(obj,s);strcat(obj,s);
printf ("%s\n",(strstr(obj,p)!=NULL)? "Yes":"No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331726/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main(void){
int a[1000],b;
int n,m;
int i,j=0,z=0;
scanf("%d%d",&n,&m);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<m;i++){
scanf("%d",&b);
while(j<n){
if(b>=a[j]){
z++;
j++;
break;
}
j++;
}
if(j==n)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33177/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
// Dice01.c
#include<stdio.h>
struct Dice {
int number[6];
};
void setLabel( struct Dice *dice, int index, int num) {
dice->number[index] = num;
}
void setNumber( struct Dice *dice, int n0, int n1, int n2, int n3, int n4, int n5) {
dice->number[0] = n0;
dice->number[1] = n1;
dice->number[2] = n2;
dice->n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331812/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331812/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 struct dice{
int up;
int front;
int right;
int left;
int back;
int down;
} dice;
int main(void){
dice sample;
char c;
int temp;
scanf("%d%d%d%d%d%d",&sample.up,&sample.front,&sample.right,&sample.left,&sample.back,&sample.down);
while((c=getchar())!=EOF){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331870/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331870/source.c"
target datalayout = "e-m:e-p270: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>
#define UP 0
#define FRONT 1
#define RIGHT 2
#define LEFT 3
#define BACK 4
#define BOTTOM 5
typedef struct{
int label[6]; // label, what do each tiles have.
int direction[6]; // direction, what direction is dice. [0]-[5]:up, front, right, left, back, bottom.
}dice;
int DiceRoll(dice* p, char c);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331928/source.c"
target datalayout = "e-m:e-p270: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 <string.h>
struct DICE {
int top;
int bottom;
int east;
int west;
int north;
int south;
};
typedef struct DICE Dice;
Dice makeDice(int a[]);
Dice toEast(Dice dice);
Dice toWest(Dice dice);
Dice toNorth(Dice dice);
Dice toSouth(Dice dice);
void printDice(Dice dice) {
printf("N:%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331971/source.c"
target datalayout = "e-m:e-p270: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>
int main(int argc, const char * argv[]) {
int dice[6], tmp;
char NEWS[100];
for(int i=0; i<6; i++){
scanf("%d", &dice[i]);
}
scanf("%s", NEWS);
for(int i=0; NEWS[i] != '\0'; i++){
tmp = dice[0];
if(NEWS[i] == 'N'){
dice[0] = dice[1];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332035/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332035/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
struct dice {
int label[6];
};
/* dice label(record as 0base)
* 1
* 4 2 3 5
* 6
*/
char *map_dir = "WNES";
#define MAP(_, a, b, c, d, e, f) {a-1, b-1, c-1, d-1, e-1, f-1}
int dice_map[4][6] = {
MAP(W, 3, 2, 6, 1, 5, 4),
MAP(N, 2, 6, 3, 4, 1, 5),
MAP(E, 4, 2, 1, 6, 5, 3),
MAP(S, 5, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332079/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332079/source.c"
target datalayout = "e-m:e-p270: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 ... |
// AOJ ITP1_11_A Dice I
// 2018.4.29 bal4u
#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; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332129/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332129/source.c"
target datalayout = "e-m:e-p270: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 dice[6];
int swap;
char c;
int i;
for(i=0;i<6;i++){
scanf("%d",&dice[i]);
}
while(scanf("%c",&c)!=EOF){
if(c=='E'){
swap=dice[0];
dice[0]=dice[3];
dice[3]=dice[5];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332172/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332172/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int ll;
int main()
{
ll n, v;
scanf("%lld%lld", &n, &v);
ll t=0;
if(n-1<=v)
{
printf("%lld\n", n-1);
}
else
{
t=v+(n-1-v)*((n-1-v)+1)/2+((n-1-v));
//t=(n-1)/v*((n-1)/v+1)/2*v+(n-1)%v*((n-1)/v+1);
printf("%lld\n", t);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33223/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 c[100002];
void merge(int i,int j,int *s){
if(i!=j){
merge(i,(i+j)/2,s);
merge((i+j)/2+1,j,s);
int a=i,b=(i+j)/2+1;
int d;
for(d=i;d<=j;d++){
if((i+j)/2<a){
c[d]=s[b];
b++;
}
else if(j<b){
c[d]=s[a];
a++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332288/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@c = dso_local local_unname... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int flag=0;
char s[101]={};
scanf("%s",s);
for(int i=0;i<strlen(s);i++){
if(i%2==0){
if(s[i]=='L') break;
} else {
if(s[i]=='R') break;
}
if(i==strlen(s)-1){
flag=1;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332338/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332338/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
scanf("%s",s);
int flag=1;
for(int i=0;i<strlen(s);i+=2){
if(s[i]!='R'&&s[i]!='U'&&s[i]!='D'){
flag=0;
break;
}
}
for(int i=1;i<strlen(s);i+=2){
if(s[i]!='L'&&s[i]!='U'&&s[i]!='D'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332396/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332396/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//B - Tap Dance
#include <stdio.h>
int main(void){
char s[100];
int i;
scanf("%s", s);
for(i=0; s[i]!='\0'; i++){
if(i%2==0 && s[i] == 'L'){
printf("No\n");
return 0;
}
if(i%2==1 && s[i] == 'R'){
printf("No\n");
return 0;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332439/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332439/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[105];
scanf("%s",S);
int i;
int ans = 0;
for (i = 1; i <= strlen(S); i++) {
if (i % 2 == 1 && (S[i - 1] == 'R' || S[i - 1] == 'U' || S[i - 1] == 'D')) {
ans++;
}
else if (i % 2 == 0 && (S[i - 1] == 'L' || S[i - 1] == 'U' || S[i - 1] == 'D')) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332482/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100
int main() {
static char s[N + 1];
int n, i, yes;
scanf("%s", s);
n = strlen(s);
yes = 1;
for (i = 0; i < n; i += 2)
if (s[i] == 'L' || (i < n - 1 && s[i + 1] == 'R')) {
yes = 0;
break;
}
printf(yes ? "Yes\n" : "No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332532/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.s = internal global [... |
#include<stdio.h>
int main(){
char c;
int i=1;
int e=0;
while((c=getchar())!=EOF){
if(i%2==1 && c=='L'){
e++;
}else if(i%2==0 && c=='R'){
e++;
}
i++;
}
puts((e==0)?("Yes"):("No"));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332583/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,ans=0;
scanf("%s",S);
for(i = 0;i < strlen(S);i++){
if(i % 2 != 0){
if(S[i] == 'R'){
printf("No\n");
return 0;
}
}else{
if(S[i] == 'L'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332626/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332626/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, v, i, sum;
scanf("%d %d", &n, &v);
sum = v * 1;
for(i=2; i<=n-v; i++){
sum = sum + i;
}
if(n<=v){
printf("%d\n", n-1);
}else{
printf("%d\n", sum);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33267/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define INIT 2147483647
#define MAX_N 100000
int min(int *array, int begin, int end) {
int i, m;
m = array[begin];
for (i = begin+1; i < end; i++) {
if (array[i] < m) {
m = array[i];
}
}
return m;
}
int main(void) {
int num, q, i;
int a[MAX_N], b[MAX_N];
int com, x, y, bx, by, tmp, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332712/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332712/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, t;
scanf("%d""%d""%d", &t, &a, &b);
if(a * t > b){
printf("%d\n", b);
}else{
printf("%d\n", a * t);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332756/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332756/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
int main()
{
char rod[1000000];
scanf("%s",rod);
int tmp,flag=0;
long long int len,i,ltorq=0,rtorq=0,pivotindex;
len=strlen(rod);
for(i=0;i<len;i++)
{
if(rod[i]=='^')
{
pivotindex=i+1;
flag=1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3328/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3328/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
int main(){
int t;
scanf("%d", &t);
for (int i = 1; i <= t; i++){
int l, r;
scanf("%d %d", &l, &r);
if (l * 2 - 1 <= r){
printf("%d\n", (r - 1) / 2);
} else {
printf("%d\n", r % l);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33285/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33285/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,x,max;
scanf("%d%d%d",&N,&A,&B);
max=N*A;
if(max<B)
{
x=max;
}
else if(max>B)
{
x=B;
}
else if(max==B)
{
x=B;
}
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332893/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332893/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d\n", n*a>b?b:n*a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332950/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332950/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int a,b,n;
scanf("%d %d %d",&n,&a,&b);
if (a*n<=b) {
printf("%d\n",a*n);
} else {
printf("%d\n",b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332994/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332994/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 kelipatan,batas1,batas2;
scanf("%d %d %d", &kelipatan,&batas1,&batas2);
int temp=batas2/kelipatan;
if(temp*kelipatan>=batas1){
printf("OK\n");
}
else printf("NG\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,judg=0;
scanf("%d",&k);
scanf("%d%d",&a,&b);
for(int i=a;i<=b;i++){
if(i%k==0){
judg++;
break;
}
}
if(judg==0){
printf("NG");
}else{
printf("OK");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
int main()
{
long long a,i,b,c;
scanf("%lld",&a);
for(i=0;i<a;i++)
{
scanf("%lld %lld",&b,&c);
int f=c/2+1;
if(f>=b)
{
printf("%lld\n",c%f);
}
else
{
printf("%lld\n",c%b);
}
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33313/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33313/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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=0,a=0,b=0;
int i=0;
scanf("%d",&k);
scanf("%d %d",&a,&b);
i=1;
while(k<=a)
{
if(a<=k*i){
break;
}
i++;
}
// printf("%d",i);
if(k*i<=b){
printf("OK\n");
}
else{
printf("NG\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333173/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void){
int k,a,b,i;
(void)scanf("%d",&k);
(void)scanf("%d %d",&a,&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_333216/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333216/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l,r;
int t;
scanf("%d",&t);
while(t>0){
scanf("%d%d",&l,&r);
int k;
k=r/2;
if(k>=l){
printf("%d",r%(k+1));
}
else
printf("%d",r%l);
printf("\n");
t--;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33326/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 K,a,b;
scanf("%d\n", &K);
scanf("%d %d\n", &a, &b);
int i = a;
if(i>b) printf("NG");
while(i<=b){
if(i%K==0){
printf("OK");
break;
}else if(i==b){
printf("NG");
}
i++;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333302/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333302/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdio.h>
int main(void)
{
int a,b,k,n;
scanf("%d",&k);
scanf("%d%d",&a,&b);
n=k;
while(n<=b)
{
if(n>=a && n<=b)
{
printf("OK\n");
return 0;
}
n += k;
}
printf("NG\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333346/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333346/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 testcases;
scanf("%d", &testcases);
//printf("%d", testcases);
while (testcases > 0)
{
long l, r, m, ans;
scanf("%ld %ld", &l, &r);
m = r / 2;
ans = (r % 2 == 0) ? m - 1 : m;
//printf("l %ld r %ld m %ld ans %ld\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33339/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33339/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int i, k, K=0, a, b;
scanf("%d",&k);
scanf("%d%d",&a,&b);
while(K<a){
K+=k;
}
if((a<=K)&&(K<=b)){
printf("OK");
}else{
printf("NG");
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333432/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333432/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include<stdlib.h>
int main(){
int k, a, b, cont=0;
scanf("%d", &k);
scanf("%d %d", &a, &b);
for(int i=a; i<b+1; ++i){
if(i%k==0)
cont=1;
}
if(cont ==1)
printf("OK\n");
else
printf("NG\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333476/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333476/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d\n%d %d", &k, &a, &b);
if (a % k == 0 || b % k == 0) printf("OK\n");
else {
int r = a % k;
if (a - r + k <= b) printf("OK\n");
else printf("NG\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333519/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 fact;
int min,max;
scanf("%d",&fact);
scanf("%d %d",&min,&max);
for (int i = min;i <= max;i++){
if(i%fact == 0){
printf("OK\n");
return 0;
}
}
printf("NG\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333562/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main(void){
int k,a,b;
int bb=0;
scanf("%d",&k);
scanf("%d %d",&a,&b);
for(int i=0;;i++){
if(a<=bb&&bb<=b){printf("OK\n");return 0;}
else if(b<bb){printf("NG\n");return 0;}
bb=bb+k;
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
unsigned nl,nr,i,k,w[100000];
unsigned nowmin,sum,Qs;
unsigned n,l,r,Ql,Qr;
scanf("%d%d%d%d%d",&n,&l,&r,&Ql,&Qr);
for(i=sum=0;i<n;i++){
scanf("%d",&w[i]);
sum+=l*w[i];
}
nowmin=sum+Ql*(n-1);
for(i=1;i<=n;i++){
sum-=l*w[n-i];
sum+=r*w[n-i];
nr=i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3337/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3337/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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... |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <float.h>
#pragma region 定義
typedef long long ll;
typedef unsigned long long ull;
#define _itoa(A,N) sprintf(A, "%d", N);
int i_dsort(const void* a, const void* b);
int i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333742/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333742/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <ctype.h>
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.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>
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333786/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333786/source.c"
target datalayout = "e-m:e-p270: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()
{
int D,T,S;
double time;
scanf("%d%d%d",&D,&T,&S);
time = (double)D/S;
if(time <= T){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333829/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 (S * T >= D)
puts("Yes");
else
puts("No");
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333872/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333872/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n");
else printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333922/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333922/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(d%s==0){
if(d/s>t)printf("No");
else printf("Yes");
}
else{
if(d/s+1>t)printf("No");
else printf("Yes");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333966/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333966/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define PI 3.141592653589793
#define MOD 1000000007
//#define DEBUG
//qsort用、昇順
int compare_int(const void *a, const void *b)
{
return *(int*)a-*(int*)b;
}
//qsort(array, 10, sizeof(int), compare_int)
int main(){
int d, t, s;
scanf("%d%d%d"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334008/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334008/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
for(;n-->0;){
scanf("%d%d",&a,&b);
printf("%d\n",(a%b==0?b:a%b));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334051/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,P,N,i;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d %d",&K,&P);
if(K%P)
printf("%d\n",K%P);
else
printf("%d\n",P);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334095/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334095/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,k,p,a;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d%d",&k,&p);
a=k%p;
printf("%d\n",a==0?p:a);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334138/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334138/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1001];
int i;
scanf("%s",str);
for(i=0;i<strlen(str);i++){
if((str[i]-3)<'A') str[i] += 26;
str[i]-=3;
}
printf("%s\n",str);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334181/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334181/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[1001];
int i = 0;
scanf("%s", str);
while (str[i] != '\0'){
if (str[i] == 'A'){
str[i] = 'X';
}
else if(str[i] == 'B'){
str[i] = 'Y';
}
else if(str[i] == 'C'){
str[i] = 'Z';
}
else{
str[i] -= 3;
}
i++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334224/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334224/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int i,j,k;
char a[1002];
int main(){
scanf("%s",a);
for(i=0;i<strlen(a);i++){
if(a[i]<=67){
a[i]=a[i]+23;
}else{
a[i]=a[i]-3;
}
}
printf("%s\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334268/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334268/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 quicksort(int arr[],int n)
{
if(n<2)
return 0;
int larr[n],rarr[n],piv[1],li=0,ri=0;
piv[0]=arr[0];
for(int i=1;i<n;i++)
{
if(arr[i]<=piv[0])
larr[li++]=arr[i];
else if(arr[i]>piv[0])
rarr[ri++]=arr[i];
}
quicksort(larr,li);
quicksort(rarr,ri);
for(int i=0;i<n;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33434/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
#define NUM_MAX 100000
#define BUF_SIZE (NUM_MAX*7+50)
int get_int2(int *a1, int *a2) {
#ifdef BUF_SIZE
char line[BUF_SIZE];
if(!fgets(line, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334390/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334390/source.c"
target datalayout = "e-m:e-p270: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.ufind = type { i32,... |
#include <stdio.h>
int main(){
int n,a,b;
scanf("%d%d%d",&n,&a,&b);
int cnt=0;
for (int i=0; i<=n; i++){
int digitsum =0;
int j = i;
while (j>0) {
digitsum += j%10;
j/=10;
}
if (a<=digitsum && digitsum <= b)cnt += i;
}
printf("%d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j=0,k=0,m=0;
scanf("%d %d %d",&n,&a,&b);
for(i=n;i>=1;i--){
k=i;
for(j=0;k!=0;){
j+=k%10;
k/=10;
}
if(j>=a && j<=b){
m+=i;
}
}
printf("%d",m);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sums(int n, int a, int b);
int main(void);
int sums(int n, int a, int b){
int i, i_tmp, j, sum_one;
int sum_nums = 0;
for(i=1; i<n+1; i++){
i_tmp = i;
sum_one = 0;
while(1){
sum_one += i_tmp%10;
i_tmp /= 10;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334527/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sums = 0;
int N, A, B;
scanf("%d %d %d", &N, &A, &B);
for (int i = 1; i <= N; i++) {
int tmp1 = i, sum = 0;
for (int j = 4; 0 <= j; j--) {
int tmp2 = tmp1 / pow(10, j);
sum += tmp2;
tmp1 -= tmp2 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334570/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 findsum(int n)
{
int sum = 0;
while(n > 0){
sum += n%10;
n /= 10;
}
return sum;
}
int main(void)
{
int N, A, B;
scanf("%d%d%d", &N, &A, &B);
int total = 0;
for(int i=1;i<=N;i++){
int sum = findsum(i);
if(A <= sum && sum <= B) total ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334620/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334620/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 wa(int a){
int ans = 0;
while(a > 0){
ans += a % 10;
a /= 10;
}
return ans;
}
int main(){
int n,a,b,ans = 0;
scanf("%d %d %d",&n,&a,&b);
for(int i = 1;i <= n;i++){
int s = wa(i);
if(a <= s && s <= b){
ans += i;
}
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334664/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,A,B,ans=0;
scanf("%d %d %d",&N,&A,&B);
for(i=1;i<=N;i++){
int a = i%10,
b = (i/10)%10,
c = (i/100)%10,
d = (i/1000)%10,
e = (i/10000)%10;
int x = a+b+c+d+e;
if(x>=A && x <= B) ans+=i;
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334714/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334714/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sub(int tmp, int a, int b)
{
int sum = 0;
while(tmp){
sum += (tmp % 10);
if(sum > b)
return 0;
tmp /= 10;
}
return sum < a ? 0 : 1;
}
int main(void)
{
int n, a, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334758/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334758/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 kakuinowa(int i){
int dig,sum=0;
while(i){
dig = i%10;
sum = sum + dig;
i = i / 10;
}
return sum;
}
int main(){
int N,A,B;
int count=0,field=0;
scanf("%d %d %d",&N,&A,&B);
for(int i=1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334800/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334800/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d\n",6-a-b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334844/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334844/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int ans = 6-A-B;
printf("%d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334888/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334888/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",6 - a - b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334930/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334930/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)&&(b!=1))
printf("1\n");
else if((a!=2)&&(b!=2))
printf("2\n");
else if((a!=3)&&(b!=3))
printf("3\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334974/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334974/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n%d",&a,&b);
if(a==1&&b==2||a==2&&b==1)
{
printf("3\n");}
else if(a==2&&b==3||a==3&&b==2)
{
printf("1\n");
}
else
{
printf("2\n");}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335016/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335016/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
long long int m,i,l,count[100008]={0},e,swap;
char ch[200006];
scanf("%s\n",ch);
l=strlen(ch);
scanf("%I64d\n",&m);
while(m--)
{
scanf("%I64d",&e);
count[e]++;
}
long long int s=0;
for(i=1;i<=l/2;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33506/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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) || (a==2 && b==1)){
printf("3");
}
else if((a==1 && b==3)|| (a==3 && b==1)){
printf("2");
}
else{
printf("1");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335102/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335102/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
a--; b--;
int c = (a^b^3) + 1;
printf("%d\n", c);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335153/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335153/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", 6-a-b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335203/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335203/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a;
scanf("%d", &a);
int b;
scanf("%d", &b);
if(a != 3 && b != 3) printf("3\n");
if(a != 1 && b != 1) printf("1\n");
if(a != 2 && b != 2) printf("2\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335247/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0;
int c = 6;
scanf("%d%d", &a, &b);
c = c - a -b;
printf("%d", c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335290/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335290/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_335333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335333/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define min(a,b) ((a)<(b)?(a):(b))
int main (void) {
int R, C, i, j, c, n, l, count, min_count;
int bit_less[1024];
int col[10000];
while (scanf("%d%d", &R, &C) == 2 && R && C) {
for (i = 0, l = pow(2, R); i < l; i++) {
for ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335384/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335384/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s;
scanf("%d",&s);
int L,R;
L=s/100;
R=s%100;
if(1<=L && L<=12){
if(1<=R && R<=12){
printf("AMBIGUOUS");
}
else printf("MMYY");
}else
if(1<=R && R<=12){
printf("YYMM");
}else printf("NA");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335427/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335427/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,n,i,j,k,l;
scanf("%d",&n);
a=n/100;
b=n%100;
if((a>=1 && a<=12) && (b>=1 && b<=12))
printf("AMBIGUOUS\n");
else if(a>=1 && a<=12)
printf("MMYY\n");
else if(b<=12 && b>=1)
printf("YYMM\n");
else
printf("NA\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335470/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335470/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,flag=0,falg=0;
scanf("%d",&a);
b=a/100;
c=a%100;
if(b<=12&&b>0)flag=1;
if(c<=12&&c>0)falg=1;
if(flag==1&&falg==1)printf("AMBIGUOUS\n");
else if(flag==1&&falg==0)printf("MMYY\n");
else if(flag==0&&falg==1)printf("YYMM\n");
else printf("NA\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335520/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335520/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a;scanf("%d",&a);
int L=a/100;
int R=a%100;
if(1<=L&&L<=12){
if(1<=R&&R<=12)printf("AMBIGUOUS\n");
else printf("MMYY\n");
}else{
if(1<=R&&R<=12)printf("YYMM\n");
else printf("NA\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335571/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335571/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 data;
if(scanf("%d",&data)==1);
int data1=data/100;
int data2=data%100;
if(data2<=12&&data2>0&&data1<=12&&data1>0){
printf("AMBIGUOUS\n");
}
else if(data2<=12&&data2!=0){
printf("YYMM\n");
}
else if(data1<=12&&data1!=0){
printf("MMYY\n");
}
else{
printf("NA\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335614/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335614/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,k,N;
char s[4];
int YYMM=1,MMYY=1;
scanf("%s",s);
if(s[2]>'0' && s[3]>'2') YYMM = 0;
if(s[2]=='0' && s[3]=='0') YYMM = 0;
if(s[0]>'0' && s[1]>'2') MMYY = 0;
if(s[0]=='0' && s[1]=='0') MMYY = 0;
if(YYMM==1 && MMYY==1) printf("AMBIGUOUS\n");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335658/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335658/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 number, number_upper, number_bottom, flag = 0;
scanf("%d", &number);
number_bottom = number % 100;
number_upper = (number - number_bottom) / 100;
if((1 <= number_bottom && number_bottom <= 12) && !(1 <= number_upper && number_upper <= 12)) {
printf("YYMM\n");
} else ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335700/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335700/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 1216: Lost in Space
// 2017.10.15
#include <stdio.h>
#include <math.h>
typedef struct { double x, y, z; } PP;
PP pp[33];
double qr0, rp0, pq0;
double dist(PP a, PP b)
{
double dx, dy, dz;
dx = a.x - b.x, dy = a.y - b.y, dz = a.z - b.z;
return sqrt(dx*dx + dy*dy + dz*dz);
}
int check(double a, double b) {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335744/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.PP = type { double,... |
#include<stdio.h>
int main(void)
{
int A,B;
scanf("%d%d",&A,&B);
if((A==1)&&(B==1)) printf("Draw\n");
else if(A==1) printf("Alice\n");
else if(B==1) printf("Bob\n");
if((A!=1)&&(B!=1)){
if(A>B) printf("Alice\n");
else if(A<B) printf("Bob\n");
else printf("Draw\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335795/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335795/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 > b){
if (b != 1){
printf("Alice\n");
}else
printf("Bob\n");
}
if (b > a){
if (a != 1)
printf("Bob\n");
else
printf("Alice\n");
}
if (a == b)
printf("Draw\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335838/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335838/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 alice,bob;
char str[8];
fgets(str,sizeof(str),stdin);
sscanf(str,"%d%d",&alice,&bob);
if (alice == bob)
{
printf("Draw\n");
}
else
{
if(alice == 1)
{
printf("Alice\n");
}
else
{
if(bob == 1)
{
printf("Bob\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335881/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335881/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int main()
{
int A, B;
scanf("%d %d", &A, &B);
if (A == 1 && B != 1) printf("Alice");
else if (A != 1 && B == 1) printf("Bob");
else if (A == B) printf("Draw");
else if(A > B ) printf("Alice");
else printf("Bob");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335924/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335924/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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==b)
printf("Draw\n");
else if(a==1)
printf("Alice\n");
else if(b==1)
printf("Bob\n");
else if(a>b)
printf("Alice\n");
else
printf("Bob\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335968/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335968/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long int n,i,j;
scanf("%lld",&n);
while(n--){
scanf("%lld",&i);
if(i==1)
printf("0\n");
else{
for(j=1;;j++){
if(i%2==0)
i=i/2;
else if(i%3==0)
i=(2*i)/3;
else i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33601/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33601/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
printf("Draw\n");
}else if(a == 1 || (a > b && b != 1)){
printf("Alice\n");
}else{
printf("Bob\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336053/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 1000
int main( void ) {
int i;
char ch[ N ];
int comp[ N ][ 3 ]; // 使用未使用、顧客番号、カウント
int num;
for( i = 0; i < N; i++ )
comp[ i ][ 0 ] = comp[ i ][ 1 ] = comp[ i ][ 2 ] = 0;
while( 1 ) {
for( i = 0; ; i++ ) {
scanf( "%c", &ch[ i ] );
if( ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336103/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336103/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NUM 4
int main(void)
{
int n[NUM][2];
int i;
for(i=0;i<NUM;i++){
scanf("%d %d",&n[i][0],&n[i][1]);
switch(n[i][0]){
case 1:
n[i][1] *= 6000;
break;
case 2:
n[i][1] *= 4000;
break;
case 3:
n[i][1] *= 3000;
break;
default:
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336161/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336161/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.