Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a[100000], i, I;
for(i = 0 ; ; i++)
{
scanf("%d", &a[i]);
if(a[i] == 0)
{
for(I = 0 ; I < i ; I++)
{
printf("Case %d: %d\n", I+1, a[I]);
}
exit(0);
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77531/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x;
int i = 0;
while (1)
{
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", ++i, x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77575/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77575/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 = -1;
int count = 1;
do
{
scanf("%d", &a);
if (a == 0)
{
break;
}
printf("Case %d: %d\n",count,a);
count += 1;
} while (a != 0);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77618/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,x;
for(i = 1;;i++){
scanf("%d",&x);
if(x == 0) break;
printf("Case %d: %d\n",i,x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77661/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77661/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, x;
i = 1;
while(1){
scanf("%d",&x);
if( x == 0){
break;
}
printf("Case %d: %d\n",i, x);
i++;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77711/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77711/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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=1;
scanf("%d",&a);
for(int i=1;a!=0;i++){
printf("Case %d: %d\n",i,a);
scanf("%d",&a);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77762/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77762/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<float.h>
#define N 1000
double min( double a , double b ){
if( a < b ){
return a;
}else{
return b;
}
}
int main( void ){
int n;
scanf( "%d" , &n );
double p[n] , q[n+1];
for( int i = 0; i < n; i++ ){
scanf( "%lf" , &p[i]);
}
for( int i = 0; i < n+1; i++ ){
scanf( "%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77805/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77805/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int
main(int argc, char *argv[])
{
int n; char s[100][100]; int min_length = 51; int k;
scanf("%d", &n);
for(int i = 0; i < n; i++){
scanf("%s", s[i]);
if(min_length > strlen(s[i])){
min_length = strlen(s[i]);
k = i;
}
}
char t[100]; int l; int flag[100]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77849/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77849/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
int N,i,j,k,count[30],len,tmp;
char S[52][52];
//char c;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%s",S[i]);
}
for(i=0;i<27;i++){
count[i] = 100;
}
for(i=0;i<27;i++){
for(j=0;j<N;j++){
len = strlen(S[j]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77892/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77892/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define int long long
#define p (int)(1e9 + 7)
int MOD(int a){
a %= p;
return a >= 0 ? a : a + p;
}
int power(int a, int N){
if(N == 0){
return 1;
}
else if(N % 2 == 0){
return power(MOD(a * a), N / 2);
}
else{
return MOD(a * power(a, N - 1));
}
}
signed main(){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77935/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77935/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 array[200000];
int tail = 0;
void pushBack(int x);
int randomAccess(int y);
void popBack(void);
void pushBack(int x) {
array[tail] = x;
tail++;
}
int randomAccess(int y) {
int z;
z = array[y];
return z;
}
void popBack(void) {
tail--;
}
int main(void) {
int n, query, number, suuji;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77979/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77979/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tail = dso_local local_unnam... |
//set many funcs template
//Ver.20180717
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78028/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78028/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 r;
scanf("%d",&r);
printf("%d",3*r*r);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78071/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78071/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(){
int a;
scanf("%d",&a);
printf("%d",a*a*3);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78121/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78121/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 r,area;
scanf("%d",&r);
area=3*(r*r);
printf("%d",area);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78172/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78172/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main()
{
int r;
scanf("%d",&r);
printf("%d\n",3*r*r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78215/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78215/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d", &n);
printf("%d",3*n*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78259/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78259/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 r;
scanf("%d",&r);
printf("%d",r*r*3);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78301/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78301/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 squr(int x){
int y;
y=x*x;
return y;
}
int main(){
int a;
int ans;
scanf("%d",&a);
ans=squr(a)*3;
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78345/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78345/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int a, result;
int i;
scanf ("%d", &a);
printf("%d", 3*a*a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78389/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78389/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 r;
scanf("%d", &r);
int a = 3*r*r;
printf("%d\n", a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78439/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78439/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
int n;
scanf("%d",&n);
printf("%d\n",3*n*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78482/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 r=0;
scanf("%d",&r);
printf("%d\n",3*r*r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78525/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 status[5000][5000];
int main(void) {
int kugi_num;
int wagom_num;
int A,B,X;
int i,j;
int count;
int max;
scanf("%d %d",&kugi_num,&wagom_num);
for(i=0;i<wagom_num;i++) {
scanf("%d %d %d",&A,&B,&X);
status[A-1][B-1]=X+1;
}
count=0;
if(status[0][0]>0)count++;
for(i=1;i<kugi_num;i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78569/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78569/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void) {
int n, ans;
int nu1[4], nu2[4];
int i, j;
int blow = 0, hit = 0;
for(;;) {
scanf("%d %d", &n, &ans);
if(n == 0 && ans == 0)
break;
for(i = 0; i < 4; i++) {
nu1[i] = n % 10;
nu2[i] = ans % 10;
n /= 10; ans /= 10;
}
for(i = 0; i < 4; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78626/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78626/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int steps[10000];
void charSwap(char* a, char* b)
{
char tmp = *a;
*a = *b;
*b = tmp;
}
void reverse(char* str)
{
int i;
int len = (int)strlen(str);
for (i = 0; i < len / 2; i++) {
charSwap(str + i, str + len - 1 - i);
}
}
void mySort(char* ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78684/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@steps = dso_local local_unna... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int compare1(const void *x,const void *y){
const char *c1=(const char *)x;
const char *c2=(const char *)y;
return *c2-*c1;
}
int compare2(const void *x,const void *y){
const char *c1=(const char *)x;
const char *c2=(const char *)y;
return *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78727/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
char str[1000];
char result;
int sum;
int num[26] = {0};
int i;
int var;
while(NULL != fgets(str, sizeof(str), stdin)){
while(str[i] != '\0'){
if('A' <= str[i] && str[i] <= 'Z') {
var = str[i] - 'A';
num[var]++;
// fprintf(s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78770/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78770/source.c"
target datalayout = "e-m:e-p270: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_unnam... |
#include <stdio.h>
#include <ctype.h>
int main(){
int out[26] = {0};
int ch;
int i = 0;
while(scanf("%c",&ch) != EOF){
ch =tolower(ch);
if(ch <= 'z' && ch >= 'a'){
out[ch - 'a']++;
}
}
for(i = 0;i<26;i++){
printf("%c : %d\n",'a' + i, out[i]);
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78813/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78813/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <ctype.h>
int main(void)
{
char ch[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
int count[26];
char c, chh;
int i, num;
for (i = 0; i < 26; i++){
count[i] = 0;
}
while (scanf("%c", &c) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78857/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78857/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* .................... compiled by alankar....................
*/
//......................SHORTCUTS..............................
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
//...........................................................
#define pi 3.14159265358979323846 //float type
#de... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7890/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7890/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MOD = dso_local local_unnamed_... |
#include<stdio.h>
int main()
{
int a,b,s;
scanf("%d%d%d",&a,&b,&s);
if(a<0)
{
a=a*-1;
}
if(b<0)
{
b=b*-1;
}
a=a+b;
if((s>=a) && ((s-a)%2==0))
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7898/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7898/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
void swap(int x,int y){
int tmp;
tmp=x;
x=y;
y=tmp;
}
int main(int argc, const char * argv[]) {
int n,m,taro[100],hana[100],card,i=0,j = 0,tsum = 0,hsum = 0,flag = 0;
while (1) {
scanf("%d %d",&n,&m);
if (n==0&&m==0) {
br... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79021/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{
int n,m,i,j,sumt,sumh,anst,ansh,min;
int t[100],h[100];
for(;;){
sumt=0,sumh=0,anst=-1,ansh=-1,min=200;
scanf("%d %d", &n, &m);
if(n==0&&m==0) break;
for(i=0;i<n;i++){
scanf("%d", &t[i]);
sumt+=t[i];
}
for(i=0;i<m;i++){
scanf("%d", &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79072/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79072/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,n;
scanf("%d",&n);
printf("%d:",n);
while(1)
{
for(i=2;i<=n;i++)
{
if(n%i==0)
{
n/=i;
printf(" %d",i);
break;
}
if(n<i*i) i=n-1;
}
if(n==1) break;
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79122/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79122/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define df 0
int dc=100000;
#define MAX 100010
int main(){
if(df)printf("*** debug mode ***\n");
int n;
scanf("%d",&n);
long int a[MAX],b[MAX],i;
for(i=0;i<n;i++){
scanf("%ld",&a[i]);
}
for(i=0;i<n;i++){
scanf("%ld",&b[i]);
}
long int c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79166/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79166/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dc = dso_local local_unnamed... |
/*
exit
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#define BIG 2000000007
#define MOD 1000000007
typedef unsigned long long ull;
typedef signed long long sll;
#define N_MAX 2000
#define M_MAX 10000
typedef struct {
int a;
int b;
} hw;
typedef struct ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79223/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.hw = type { i32, i32 ... |
#include <stdio.h>
int main(void){
int x, a;
scanf("%d %d", &x, &a);
if(a > x){
printf("0\n");
}else{
printf("10\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79267/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 fun(int x)
{
if(x<0)return (-x);
return x;
}
int main()
{
int i,j,a,b,s,f=1;
scanf("%d%d%d",&a,&b,&s);
if(s<fun(a)+fun(b))
{
f=0;
}
if((fun(a)+fun(b))%2!=s%2)
{
f=0;
}
if(f) printf("Yes\n");
else printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7931/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7931/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<string.h>
#include<math.h>
#define loop(i, l, r) for(i=l; i<r; i++)/*Instead of function, (for).*/
#define rep(i,r) for(i=0; i<r; i++)
#define Min(a, b) ((a < b)? a : b)
#define Max(a, b) ((a > b)? a : b)
#define Abs(x) ((x>=0)? x : -x)/*Return the absolute value of x.*/
typedef long long int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79353/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,a,ans=0;
scanf("%d%d",&x,&a);
if(x<a){
ans=0;
}
else{
ans=10;
}
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79397/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,a;
scanf("%d%d",&x,&a);
if(x<a){
printf("0");
}
else if(x>a){
printf("10");
}
else if(x==a){
printf("10");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79447/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,x;
scanf("%d%d", &x,&a);
if(x<a)
printf("0");
else if(x>=a)
printf("10");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79490/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79490/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 X, A;
do {
scanf("%d %d", &X, &A);
} while (X < 0 || A > 9);
if (X < A) {
printf("%d\n", 0);
} else {
printf("%d\n", 10);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79533/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79533/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,a;
scanf("%d %d",&x,&a);
if(x<a)
{
printf("0\n");
}
else
{
printf("10\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79577/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, A;
scanf("%d %d", &X, &A);
if (X < A) {
printf("0");
}
else {
printf("10");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79627/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79627/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,x;
scanf("%d %d",&x,&a);
if(x<a) printf("0");
else printf("10");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79670/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79670/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,x;
scanf("%d %d",&a,&x);
if(a<x){
puts("0");
}
else if(x<=a)
puts("10");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79713/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,a;
scanf("%d %d",&x,&a);
if(x<a)
printf("0");
else
printf("10");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79757/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,y,s;
scanf("%d%d%d",&x,&y,&s);
x=x<0?x*(-1):x;
y=y<0?y*(-1):y;
if((x+y)>s)
{
printf("No\n");
return 0;
}
//printf("\n%d",s-(x+y));
if((s-(x+y))%2==0)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7980/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main(void){
int x, a;
scanf("%d %d", &x, &a);
if(x<a) printf("0");
else printf("10");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79843/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79843/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, C, X ;
fscanf(stdin, "%d\n%d\n%d\n%d", &A, &B, &C, &X ) ;
int ways = 0 ;
int a, b, c ;
int max_a, max_b ;
max_a = X / 500 ;
if( max_a > A) {
max_a = A ;
}
for( a = max_a ; a >= 0 ; a-- ) {
max_b = ( X - 500 * a ) / 100 ;
if( max_b > B ) {
max_b = B ;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79887/source.c"
target datalayout = "e-m:e-p270: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_unnam... |
#include<stdio.h>
int main()
{
long long int a,b,s,sum;
scanf("%lld%lld%lld",&a,&b,&s);
if(a<0&&b<0)
{
a=-a;
b=-b;
sum=a+b;
if(sum>s)
printf("No");
else
{
if((sum-s)%2==0)
printf("Yes");
else
printf("No");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7993/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7993/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
int main(void)
{
int a,b,c;
scanf("%d%d%d", &a, &b, &c);
int x;
scanf("%d", &x);
int i = 0;
int j;
int k;
int count = 0;
while (i <= a)
{
j = 0;
while (j <= b)
{
k = 0;
while (k <= c)
{
if ((i*500) + (j*100) + (k*50) == x)
count++;
k++;
}
j++;
}
i++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79973/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, C, X;
int sum = 0;
int count = 0;
scanf("%d", &A);
scanf("%d", &B);
scanf("%d", &C);
scanf("%d", &X);
for(int i=A; i>=0; i--)
{
sum = 500 * i;
if(sum > X) continue;
else if(sum == X)
{
count++;
continue;
}
else
{
for(int j=B; j>=0; j-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80014/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80014/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 en500,en100,en50,ans,count,i,j,k;
scanf("%d %d %d %d",&en500,&en100,&en50,&ans);
for(i = 0; i <= en500;i++){
for(j = 0; j <= en100;j++){
for(k = 0; k <= en50;k++){
if(500*i+100*j+50*k == ans){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80058/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
// a: 500, b: 100, c: 50
int solv(int a, int b, int c, int x) {
int i, j, k, count = 0, y;
for (i = 0; i <= a; i++) {
for (j = 0; j <= b; j++) {
y = i * 500 + j * 100;
if (x - y < 0) {
break;
}
k = (x - y) / 50;
if (k <= c) {
count++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80100/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,c,x,s=0,i,j,k;
scanf("%d%d%d%d",&a,&b,&c,&x);
for(i=0;i<=a;i++)for(j=0;j<=b;j++)for(k=0;k<=c;k++)if(500*i+100*j+50*k==x)s++;
printf("%d",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80144/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <limits.h>
#define inf (INT_MAX-1)
#define INF 9223372036854775807
#define sq(n) ((n)*(n))
#define rep(i,n) for(i=0;i<n;i++)
#define rev(i,n) for(i=n-1;i>=0;i--)
#define sort(a,n) qsort(a,n,sizeof(TYPE),cmp)
#defin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unname... |
#include <stdio.h>
int main()
{
int x, a, b, c;
int i, j, k;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &x);
int count=0;
for (i = 0; i <= a; i++)
{
for (j = 0; j <= b; j++)
{
for (k = 0; k <= c; k++)
{
if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80238/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80238/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[6],i;
for(i=1;i<6;i++)
{
scanf("%d",&a[i]);
if(a[i]==0)
{
printf("%d",i);
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80289/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[5];
scanf("%d %d %d %d %d",&x[0],&x[1],&x[2],&x[3],&x[4]);
for(int i=0;i<5;i++) {
if(x[i]==0) {
printf("%d",i+1);
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80331/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[5];
scanf("%d%d%d%d%d",&x[0],&x[1],&x[2],&x[3],&x[4]);
int ans=0;
if(x[0]==0)ans = 1;
if(x[1]==0)ans =2;
if(x[2]==0)ans = 3;
if(x[3]==0)ans =4;
if(x[4]==0)ans =5;
printf("%d",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80375/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80375/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[5],i,y;
y=0;
for(i=1;i<=5;i++){
scanf("%d",&x[i]);
if(x[i]==0) y=i;
}
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80418/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80418/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x[5];
scanf("%d %d %d %d %d", &x[0], &x[1], &x[2], &x[3], &x[4]);
for (int i = 0; i < 5; i++)
{
if (x[i] == 0)
{
printf("%d\n", (i + 1));
}
else
{
continue;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80461/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
signed main(){
int x[100],i;
for(i=0;i<5;i++){
scanf("%d",&x[i]);
if(x[i]==0){
printf("%d\n",i+1);
}}
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80504/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
int x1, x2, x3, x4, x5;
scanf("%d %d %d %d %d", &x1, &x2, &x3, &x4, &x5);
if(x1==0)
printf("1");
else if(x2==0)
printf("2");
else if(x3==0)
printf("3");
else if(x4==0)
printf("4");
else if(x5==0)
printf("5");
printf("\n");
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80548/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x[5] = {0};
int i;
for(i = 0; i < 5; ++i)
x[i] = i + 1;
for(i = 0; i < 5; ++i)
scanf("%d", &x[i]);
for(i = 0; i < 5; ++i){
if(x[i] == 0)
break;
}
printf("%d\n", i + 1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80591/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[5], i;
for (i = 0;i <= 4;i++) {
scanf("%d", &x[i]);
if (x[i] == 0) {
printf("%d", i+1);
return 0;
}
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80641/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80641/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main()
{
int a[6];
int i;
scanf("%d%d%d%d%d",&a[1],&a[2],&a[3],&a[4],&a[5]);
for(i=1;i<=5;i++){
if(a[i]==0)
break;
}
printf("%d\n",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80685/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80685/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ) {
//char str[1000];
int num[10];
for(int i = 0; i < 5; i++){
scanf("%d", &num[i]);
if(num[i] == 0){
printf("%d\n", i + 1);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80728/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,s=0,i;
for(i=0;i<5;i++){
scanf("%d",&a);
s+=a;
}
printf("%d\n",15-s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80771/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
int n;
scanf("%d", &n);
puts(n<1000 ?"ABC":"ABD");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80814/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80814/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
//#include <limits.h>
//#include <math.h>
int main() {
int n;
scanf("%d", &n);
if (n/1000 == 0) printf("ABC\n");
else printf("ABD\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80858/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80858/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{int n;
scanf("%d",&n);
if(n<=999){printf("ABC");}
else{printf("ABD");}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80908/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80908/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void)
{
int n;
scanf("%d",&n);
if(n<=999){
printf("ABC\n");
}
else if(1000<=n){
printf("ABD\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80951/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d",&a);
if(a<1000){
printf("ABC\n");
}else{
printf("ABD\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81000/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81000/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d", &n);
if(n>=1 && n<=999)
printf("ABC\n");
else if(n>999 && n<=1998)
printf("ABD\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81044/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81044/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 argc, char *argv[] ) {
int n;
scanf("%d", &n);
if (n<1000) printf("ABC\n");
else printf("ABD\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81088/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81088/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int compare_long(const void *a, const void *b) {long *A = (long *)a;long *B = (long *)b;if (*A > *B) return 1;if (*A < *B) return -1;return 0;}
int main(void){
int N,i;
long long M;
scanf("%d%lld",&N,&M);
long long A[N+1],B[N+1],ans=0;
A[0] = 0;
for(i=1;i<=N;i++)scanf("%ll... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81130/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81130/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
char s[5];
scanf("%s",s);
if(s[0]=='A' && s[1]=='A' && s[2]=='A'){
printf("No\n");
}else if(s[0]=='B' && s[1]=='B' && s[2]=='B'){
printf("No\n");
}else{
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81174/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81174/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
char s[4];
int i,a = 0,b = 0;
scanf("%s", &s);
for (i = 0; i < 3; i++)
{
if (s[i] == 'A') a++;
else b++;
}
if (a == 2 && b == 1 || a == 1 && b == 2) printf("Yes");
else printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81217/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81217/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
char S[3];
scanf("%s",S);
if(S[0] == S[1] && S[1] == S[2])
printf("No");
else
printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81260/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81260/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
char N[3];
scanf("%s",N);
/*
int A[N];
int i;
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
*/
if(N[0] == N[1] && N[1] == N[2] && N[0] == N[2]){
printf("No");
}
else{
printf("Yes");
}
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81303/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81303/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,y,z;
scanf("%c%c%c",&x,&y,&z);
if((x == y) && (x == z) && (y == z)){
printf("No");
}else{
printf("Yes");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81354/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81354/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b,c;
scanf("%c%c%c",&a,&b,&c);
int flag=1;
if(a=='A'&&b=='A'&&c=='A')flag=0;
if(a=='B'&&b=='B'&&c=='B')flag=0;
if(flag)printf("Yes");
else printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81398/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 s[80];
int i=0;
scanf("%s",s);
for (i=0;s[i]!='\0';i++)
;
if (i==3){
if (s[0]=='A' || s[0]=='B'){
if ((s[0]==s[1]) && (s[1]==s[2]))
printf("No");
else
printf("Yes");
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81455/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81455/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 s[3];
scanf("%s",s);
int c;
c=0;
if(s[0] == s[1]){
if(s[1] == s[2]){
c=1;
}
}
if(c==0){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81499/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81499/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int main()
{
char S[3];
scanf("%s", S);
if (0 == strcmp(S, "BBB") || 0 == strcmp(S, "AAA"))
printf("No");
else
printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81541/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 str[2];
scanf("%s",&str);
if(str[0]=='B' && str[1]=='B' && str[2]=='B'){
printf("No");
return 0;
}
if(str[0]=='A' && str[1]=='A' && str[2]=='A'){
printf("No");
return 0;
}
printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81585/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
// ABC 158-A
// 2020.3.7 bal4u
#include <stdio.h>
int main()
{
int i, A, B;
char S[5];
A = B = 0;
scanf("%s", S);
for (i = 0; i < 3; ++i) {
if (S[i] == 'A') A++;
else B++;
}
puts((A && B)? "Yes": "No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81628/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b;
scanf("%c %c",&a,&b);
printf(a>b?">":a<b?"<":"=");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81671/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81671/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
char X,Y;
scanf("%c %c",&X,&Y);
if(X>Y){
printf(">\n");
}else if(X<Y){
printf("<\n");
}else{
printf("=\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81714/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81714/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main(void){
char x[2],y[2];
scanf("%s %s",x,y);
if(strcmp(x,y)==0){
printf("=\n");
}else if(strcmp(x,y)<0){
printf("<\n");
}else{
printf(">\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81758/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81758/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main() {
char x, y;
scanf("%c %c", &x, &y);
if (x == y) printf("=\n");
if (x < y) printf("<\n");
if (x > y) printf(">\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81815/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x, y;
scanf("%s %s", &x, &y);
if (x < y) puts("<");
else if (x > y) puts(">");
else puts("=");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81866/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81866/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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("%x %x", &a, &b);
if ( a < b ){
printf("<\n");
}else if (a == b){
printf("=\n");
}else{
printf(">\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81916/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int i;
int a,b;
int count = 0;
scanf("%d",&n);
for ( i=0; i<n; i++){
scanf("%d %d",&a,&b);
if ( b - a >= 2) count++;
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8196/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<stdlib.h>
int main()
{
unsigned long long int h, w;
scanf("%llu %llu",&h,&w);
unsigned long long int s =0;
unsigned long long int a = h/2;
unsigned long long int b = w/2;
if(h == 1 || w == 1)
{
printf("1");
return 0;
}
else if(h%2 == 1)
{
s = a*w + b;
if(w%2 ==1)
{
s +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82001/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 (){
long ans;
long h,w;
scanf("%ld%ld",&h,&w);
if(h%2==1 && w%2==1){
ans=(h*w+1)/2;
}else{
ans=h*w/2;
}
if(h==1 || w==1){
ans = 1;
}
printf("%ld\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_82045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_82045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.