Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
#include<string.h>
#include<math.h>
int main()
{
char a[102];
int i, l, j=0, k=0, n=0, m=0;
scanf("%s", &a);
l=strlen(a);
for(i=0; i<l; i++)
{
n++;
if(a[i]=='1') {j=1; break;}
}
if(j==1)
{
for(j=n; j<l; j++)
{
if(a[j]=='... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12459/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12459/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
#include <stdbool.h>
#define LL long long
#define INF 1145141919810364364
#define PI 3.14159265358979
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 1000000007
//#define MO... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124632/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124632/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pid = dso_local local_unna... |
#include<stdio.h>
int main(){
int n,m,a[110],b[110],g,max,i,j;
scanf("%d %d",&n,&m);
for(i=0;i<m;i++)scanf("%d %d",&a[i],&b[i]);
g=0;
for(i=0;i<n;i++){
for(j=max=0;j<m;j++){
if(g+1<a[j]||b[j]<g+1)continue;
if(max<b[j])max=b[j];
}
if(max==0){
printf("Impossible\n");
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124676/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124676/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main(void){
double i,n,p,ans=0;
scanf("%lf %lf",&n,&p);
if(n==1)ans=p;
else if(n>=40 || n>=p)ans=1;
else if(n==2){
for(i=1; i<=1000000; i++){
if(fmod(p,pow(i,2))==0)ans=i;
}
}
else if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define N 9
int cmpfunc (const void * a, const void * b)
{
return ( *(int*)a - *(int*)b );
}
bool is_set(int a, int b, int c) {
if (a == b && b == c) return true;
int array[] = {a, b, c};
qsort(array, 3, sizeof(int), cmpfunc);
if (array[2] - ar... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124784/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124784/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@solve_backtrack.solved = i... |
#include<stdio.h>
int main(void) {
int n, x, y, b, p, f, z=0, i, j;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d %d %d %d", &x, &y, &b, &p);
f = x*b + y*p;
if (b >= 5 && p >= 2)f*=0.8;
else {
if (b < 5)b = 5;
if (p < 2)p = 2;
z = 0.8*(x*b + y*p);
if (z < f)f = z;
}
printf("%d\n", f);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124834/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#define BUF_SIZE 200
int get_int2(int *a1, int *a2) {
#ifdef BUF_SIZE
char line[BUF_SIZE];
if(!fgets(line, BUF_SIZE, stdin)) return -1;
sscanf(line, "%d %d", a1, a2);
#else
#error
#endif
return 0;
}
// <arr[0]> <arr[1]> .. <arr[si... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124885/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124885/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main(void){
// Your code here!
int x;
scanf("%d",&x);
if (x >= 30){
printf("Yes");
}
else{
printf("No");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124928/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
int X;
scanf (" %d",&X);
if (X>=30){
printf("Yes");
}
else {
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124971/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
int X;
scanf("%d",&X);
if(X>=30){
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125013/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int x;
scanf("%d", &x);
if(x >= 30){
printf("Yes");
}else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,i;
int max1,max2;
int a[100],b[100],c[100];
scanf("%d",&n);
for(i=2;i<=n;i++)
scanf("%d",&a[i]);
a[1]=0;
for(i=1;i<=n-1;i++)
scanf("%d",&b[i]);
b[n]=0;
for(i=1;i<=n;i++)
scanf("%d",&c[i]);
for(i=2;i<=n;i++)
a[i]+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12510/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12510/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>29){
printf("Yes");
}else{
printf("No");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125143/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
if(x>=30){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125187/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125187/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, arr[100000], x, count, zero, one, i;
while(scanf("%d", &n)==1){
count=0;
for(i=0; i<n; i++){
scanf("%d", &arr[i]);
}
for(i=0; i<n; i++){
if(arr[i]==1)
count++;
if(arr[i]==1 &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12523/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12523/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d", &x);
if(x >= 30)
printf("Yes");
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125273/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int X;
scanf("%d",&X);
if(X >= 30){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125316/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k, n, l, r, m;
scanf("%I64d %I64d", &n, &k);
l=0;
r=n+1;
while(l+1!=r){
m=(l+r)/2;
if(m*(m+1)/2-(n-m)<=k) l=m;
else r=m;
}
printf("%I64d\n", n-l);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12536/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12536/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void) {
int X;
scanf("%d", &X);
if( X >= 30 ) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125402/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m;
int i,j;
int t;
int change;
int list[100];
int bucket[100];
scanf("%d %d",&n,&m);
while(n&&m){
for(i=0;i<100;i++){
list[i] = i+1;
bucket[i] = 0;
}
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf("%d",&t);
bucket[j] += t;
}
}
for(i=0;i<m-1;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125475/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125475/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int long long
#define seg_tree_valtype int
#define inf (int)(1e18)
typedef struct {
seg_tree_valtype *dat;
int n; //要素数
int N; //要素数以上の最小の2のべき乗
seg_tree_valtype (*f)(seg_tree_valtype x, seg_tree_valtype y);//演算
seg_tree_valtype e;//演算の単位元
}seg_tree;
//要素n, 演算f, 単位元e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125518/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125518/source.c"
target datalayout = "e-m:e-p270: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.seg_tree = type { p... |
#include<stdio.h>
#include<stdlib.h>
int main()
{
int N,M;
int A[1000],B[1000];
int vote[1000];
int best;
int i,j;
scanf("%d %d",&N,&M);
for(i=0;i<N;i++)scanf("%d",&A[i]);
for(i=0;i<M;i++)scanf("%d",&B[i]);
for(i=0;i<N;i++)vote[i]=0;
for(i=0;i<M;i++)
{
for(j=0;j<N;j++)
{
if(B[i]>=A[j])
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125583/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//
// AOJ0593.c
//
//
// Created by 中野 優 on 2014/02/15.
//
//
#include <stdio.h>
int main(void){
int n,m,i,j,max;
scanf("%d %d",&n,&m);
int a[n],b[m],count[n];
for(i=0;i<n;i++) count[i]=0;
for(i=0;i<n;i++) scanf("%d",&a[i]);
for(i=0;i<m;i++) scanf("%d",&b[i]);
for(i=0;i<m;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125626/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125626/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,i,c=0;
scanf("%d %d",&n,&k);
int a[1001],b[1001]={0};
for(i=1;i<n+1;i++)
{
scanf("%d",&a[i]);
b[a[i]]++;
}
for(i=1;i<k+1;i++)
{
if(b[i]%2==1)
c++;
}
i=n-(c/2);
printf("%d\n",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12567/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12567/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef unsigned long long ll;
typedef long double LD;
#define MAXN 1000002
#ifndef ONLINE_JUDGE
#define DEBUG
#endif
#define MIN(a,b) (((a)<(b))?(a):(b))
int main(void)
{
unsigned int N,K;
unsigned int div,sqrtval,i;
#ifndef ONLINE_JUDGE
/*FILE *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12572/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12572/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
char s[1000];
int f(int i,char *c,char *p)
{
int j;
for(j=0;j<5;j++)
if(s[i+j]!=c[j])
return i+1;
for(j=0;j<5;j++)
s[i+j]=p[j];
return i+5;
}
int main()
{
int i=0;
while(scanf("%c",&s[i])!=EOF)
i++;
i=0;
while(s[i])
{
switch(s[i])
{
case'a':i=f(i,"apple","peach");break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125778/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@s = dso_local global [1000... |
#include <stdio.h> // scanfとprintfを使うおまじない
#include <string.h>
int main(int argc, char *argv[]){
int i, n;
char S[11];
// 標準入力から読み込む(空白や改行で勝手に区切ってくれる)
// 逆に空白込みの文字列を読み込む場合は別の方法で読む必要がある。
scanf("%s", S);
n=strlen(S);
if(n%2!=0) printf("No\n");
else{
for(i=0;i<n;i+=2){
if(S... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125820/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[11];
scanf("%s", str);
char* p = str;
do{
if(*p++ != 'h'){
printf("No\n");
return 0;
}
if(*p++ != 'i'){
printf("No\n");
return 0;
}
}while(*p!='\0');
printf("Yes\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125864/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125864/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* AUTHOR: AKASH JAIN
* EMAIL: akash19jain@gmail.com
* ID: akash19jain
* DATE: 08-03-2020 17:27:27
*/
// #include<algorithm>
// #include <bits/stdc++.h>
// using namespace std;
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<ctype.h>
#define SC1(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125914/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INF = dso_local local_unna... |
#include<stdio.h>
int main()
{
int n,y,sen,gosen,man;
scanf("%d %d",&n,&y);
for(sen=0;sen<=n;sen++){
for(gosen=0;gosen<=n;gosen++){
man=n-sen-gosen;
if(sen*1000+gosen*5000+man*10000==y&&
sen+gosen+man==n&&man>=0){
printf("%d %d %d",man,gosen,sen); return 0; }
}
}
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_125958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_125958/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,r=0,a;
scanf("%d%d",&n,&k);
int arr[n];
int arr2[k];
for(int i = 0; i < k; i++)
{
arr2[i] = 0;
}
for(int i = 0; i < n; i++)
{
scanf("%d",&arr[i]);
for(int x = 0; x < k; x++)
{
if(arr[i] == x+1)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12600/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12600/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 number(int* a, int n){
int sum = 0;
for(int i=0; i<n; i++){
sum += *(a+i);
}
return sum;
}
int main(){
int n, y;
scanf("%d %d", &n, &y);
int a[3] = {0, 0, y/1000};
while(n < number(a, 3)){
int flag = 1;
if(number(a, 3)-n >= 4 && a[2]/5 > 0 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, y, i, j, z;
scanf("%d%d", &n, &y);
for(i=0;i<=n;i++){
for(j=0;j<=n;j++){
z=n-i-j;
if(10000*i+5000*j+1000*z==y&&z>=0){
printf("%d %d %d\n", i, j, z);
return 0;
}
}
}
printf("-1 -1 -1\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 prime(int p){
int i;
if(p%2==0 && p!=2) return 1;
if(p==2) return 0;
for(i=3;i*i<=p;i+=2){
if(p%i==0) return 1;
}
return 0;
}
int main(void){
int a,b,i;
scanf("%d %d",&a,&b);
if(prime(a)){
puts("NO");
return 0;
}
if(prime(b)){
puts("NO");
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12613/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12613/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,y,i,x,s;
scanf("%d%d",&a,&y);
for(i=0;i<=a;i++)for(x=0;x<=a-i;x++){
s=a-i-x;
if(i*1000+x*5000+s*10000==y){
printf("%d %d %d\n",s,x,i);
return 0;
}
}
puts("-1 -1 -1");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126173/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
long int yy;
scanf("%d %ld",&n,&yy);
yy=yy/1000;
int z=0;
int p=-1;
int q=0;
int au=yy-n;
int j=0;
while(j==0 && au>=9*(p+1))
{
p++;
if((au-9*p)%4==0)
{
q=(au-9*p)/4;
if((yy-10*p-5*q)>=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126223/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int length, sum, i, left = 0,
right = 0, currentSmallest = 1000000;
scanf(" %d %d", &length, &sum);
int *array = (int *) malloc(sizeof(int[length]));
for ( i = 0; i < length; i++ )
scanf(" %d", array+i);
int currentSum = array[0];
// iterate right un... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126289/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
static int d[ N ];
static int n;
static unsigned long long int k_operafan[ N ][ N * 9 ];
static unsigned long long int
dpFSA (
const int r,
const int k
)
{
if ( r == n
&& k == d[ n ] ) return ( 1 );
if ( r == n
|| k < 0
|| k > 20 ) retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126353/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define rep(i,n) for(i=0;i<n;i++)
#define PI 3.14159265358979323846264338327950L
int gcd(int a,int b){//Greatest Common Divisor(最大公約数)
if(a<b){
int tmp=a;
a=b;
b=tmp;
}
while (b!=0){
int r=a%b;
a=b;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126397/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define N (size_t)1e5
#include <stdio.h>
#include <stdlib.h>
enum quiery_type {REQUEST=0, CHANGE=1};
size_t get_size_t(void) {
long long unsigned result;
scanf("%I64u", &result);
return result;
}
size_t count_segments_more_than_target(long long unsigned length[], size_t
hairlines, unsigned target_length) {
si... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12644/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12644/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
void Swap(int *a, int *b){
int tmp;
tmp = *a;
*a = *b;
*b = tmp;
}
int Gcd(int a, int b, int c){
int r, s;
if(a < b){
Swap(&a, &b);
}
while(b != 0){
r = a % b;
a = b;
b = r;
}
if(a < c){
Swap(&a, &c);
}
while(c !... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126483/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int a, int b){
int c = a;
int d = b;
int e = 0;
/*if(a<0 || b<0){
return -1;
}*/
while(d > 0){
e = d;
d = c%e;
c = e;
}
return c;
}
int gcdThree(int a, int b, int c){
int g;
g = gcd(gcd(a,b), c);
return g;
}
long long int gcdSum(int K){
int i = 0, j, k;
long long int g ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126526/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int x,int y){
int tmp;
if(y>x){
tmp=y;
y=x;
x=tmp;
}
if(y==0){
return x;
}else{
return gcd(y,x%y);
}
}
int main(){
int n,a,b,c,gcd_1,gcd_2;
long result=0;
scanf("%d",&n);
for(a=1;a<=n;a++){
for(b=1;b<=n;b++){
for(c=1;c<=n;c++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126584/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126584/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int a, int b){
return a%b==0 ? b : gcd(b,a%b);
}
int main() {
int k,a,b,c;
long int sum=0;
scanf("%d",&k);
for(a=1; a<=k; a++)
for(b=1; b<=k; b++)
for(c=1; c<=k; c++){
if(a<=b<=c) {if(gcd(c,b) >= a) sum+=gcd(gcd(c,b),a);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126627/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126627/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
int A,B,C,k,r,tmp,ans=0,a,b,c;
char token[300]={};
fgets(token, sizeof(token), stdin);k=atoi(token);
for (A=1; A<=k; A++) {
for (B=1; B<=k; B++) {
for (C=1; C<=k; C++) {
a=A;b=B;c=C;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126670/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126670/source.c"
target datalayout = "e-m:e-p270: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 K, ans = 0;
scanf("%d", &K);
for (int i = 1; i <= K; i++) {
for (int j = 1; j <= K; j++) {
for (int l = 1; l <= K; l++) {
int J = j, I = i, L = l,gc,gcd,N,n;
//printf("%d %d %d ", I, J, L);
if (I < J) {
int t = I;
I = J;
J = t;
}
//printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <limits.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126757/source.c"
target datalayout = "e-m:e-p270: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.GcdList = type { i8... |
#include <stdio.h>
#define N 1000
int main()
{
int n, m, i, j, a, b;
int x[N];
scanf("%d%d", &n, &m);
for(i=0; i<n; i++)
x[i] = 0;
for(i=0; i<m; i++)
{
scanf("%d%d", &a, &b);
x[a-1] = 1;
x[b-1] = 1;
}
for(i=0; i<n; i++)
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12680/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12680/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<string.h>
#include<stdbool.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#define MOD1 1000000007
#... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126865/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126865/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
typedef int value_type; /* ソートするキーの型 */
/* x, y, z の中間値を返す */
value_type med3(value_type x, value_type y, value_type z) {
if (x < y) {
if (y < z) return y; else if (z < x) return x; else return z;
} else {
if (z < y) return y; else if (x < z) return x; else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126915/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126915/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
int len;
char s[100000+1]={0};
scanf("%s",s);
len = strlen(s);
for(int i=0; i<len; i=i+2){
printf("%c", s[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_126966/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_126966/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100001];
scanf("%s", s);
for (int i = 0; i < strlen(s); ++i) {
if (i % 2 == 0) {
printf("%c", s[i]);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127008/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127008/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main() {
int i;
char str[100001];
scanf("%s", str);
for(i = 0; i < strlen(str); i++) {
if(i % 2 == 0) {
printf("%c", str[i]);
}
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127051/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100005];
int main(){
scanf("%s",s);
int i;
int len=strlen(s);
for(i=0;i<len;i+=2){
printf("%c",s[i]);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
int n,l,i,j,a,b,tem,road[1010];
memset(road,0,sizeof(road));
scanf("%d%d",&n,&l);
while(l--)
{
scanf("%d%d",&a,&b);
road[a]=1;
road[b]=1;
}
for(i=1;i<=n;i++)
if(road[i]==0)
{
tem=i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12716/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12716/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <string.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127202/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@heap_idx = dso_local local... |
#include<stdio.h>
int main()
{
char c;
int n;
for(;;)
{
n=0;
for(;~(c=getchar())&&c!=10;c>30?n+=(c-'0'):0);
if(n==0)return 0;
printf("%d\n",n);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127253/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
char a[1000][1200];
int i=0;
while(1){
fgets(a[i],1200,stdin);
if(a[i][0]=='0'&&a[i][1]=='\n')
break;
i++;
}
int s,t;
int b[i];
for(s=0;s<=i;s++){
b[s]=0;
for(t=0;a[s][t]!='\n';t++){
b[s]+=a[s][t]-'0';
}
}
int c;
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127297/source.c"
target datalayout = "e-m:e-p270: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 ctoi(char c){
switch(c){
case '0':{return 0;}
case '1':{return 1;}
case '2':{return 2;}
case '3':{return 3;}
case '4':{return 4;}
case '5':{return 5;}
case '6':{return 6;}
case '7':{return 7;}
case '8':{return 8;}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127361/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127361/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int sum=0,i,slen;
char input[1002],c[2];
while(1){
fgets(input,sizeof input,stdin);
slen=strlen(input);
for(i=0;i<slen;i++){
c[0]=input[i];
sum+=atoi(c);
}
if(sum==0){
break;
}
printf("%d\n",sum);
sum=0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127411/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127411/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main(void)
{
char num;
int sum;
while(1) {
scanf("%c",&num);
if(num == '0') break;
sum = num - '0';
while(1) {
scanf("%c",&num);
if(num == '\n') break;
sum += num - '0';
}
printf("%d\n",sum);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127455/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127455/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num[1000];
int sum = 0, i = 0;
while(1){
scanf("%s", &num);
if(num[0] == '0'){
break;
}
sum = 0;
for(i=0;num[i] != '\0';i++){
sum += num[i] - '0';
}
printf("%d\n", sum);
}
re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127499/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127499/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
char str[1001];
int tmp, i;
while (1) {
memset(str, '\0', sizeof(str));
scanf("%s", str);
// printf("%s", str);
if (atoi(&str[0]) == 0) break;
tmp = 0;
for (i = 0; str[i] != '\0'; ++i) {
tmp += (int)(str[i] - '0');
//pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127549/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127549/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
char num_str[1002];
int num;
long sum = 0;
int i;
char tmp;
while (1){
fgets(num_str,sizeof(num_str),stdin);
if (num_str[0] =='0') break;
for (i = 0; i < strlen(num_str)-1; i++){
tmp = num_str[i];
num = atoi(&tmp);
sum = sum + num;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127592/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127592/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main (void)
{
char in[1001];
int out,i;
for(;;)
{
scanf("%s",in);
if(in[0]=='0')
{
return 0;
}
out=0;
for(i=0;in[i]!='\0';i++)
{
out+=in[i]-'0';
}
printf("%d\n",out);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127635/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127635/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sum[1000];
int i;
int j;
int k=0;
char array[1000];
char n[10]={'0','1','2','3','4','5','6','7','8','9'};
for(i=0;i<1000;i++){
sum[i]=0;
}
while(1){
for(i=0;i<1000;i++){
array[i]='0';
}
scanf("%s",array);
if(array[0]=='0'){
break;
}
for(i=0;i<1000;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127693/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127693/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch;
int start = 0,sum;
scanf("%c",&ch);
while(ch != '0' || start != 0){
if(ch == '\n'){
printf("%d\n",sum);
start = 0;
sum = 0;
} else {
start = 1;
sum += ch - '0';
}
scan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127743/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main()
{
char s[1000];
int t,i,p=0;
scanf("%s",s);
while (s[0]!='0')
{
t=strlen(s);
for(i=0;i<t;i++)
{
p=p+s[i]-'0';
}
printf("%d\n",p);
p=0;
scanf("%s",s);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127794/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main () {
int i,j;
char n[100000] = {0};
int x[1001] = {0};
i = 0;
j = 0;
while(1) {
scanf("%c",&n[i]);
if(n[i] == '0' && n[i-1] == '\n'|| n[0] == '0') {break;}
if(n[i] >= '1' && '9' >= n[i] && n[i] != '\n') {
x[j] += n[i]-48;
}
if(n[i] == '\n') {
j = j + 1;
}
i= i+1;
}
for(i=0; i < j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127851/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdbool.h>
#include<ctype.h>
#define PI 3.141592653589
#define N_MAX 1001
int main()
{
char buf[N_MAX];
int i, len, tmp, sum = 0;
while(1)
{
scanf("%s",buf);
if (strcmp(buf,"0") == 0) break;
sum = 0;
len = strlen(buf);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127895/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
// 変数定義
char chInput; // 入力1文字
char chPreInput = 0; // 1文字前の入力
int iSum;
// 1行ずつ入力を繰り返す
while (1)
{
// iSumの初期化
iSum = 0;
// 改行を読み込むまで足し続ける
while ((chInput = getc(stdin)) != '\n')
{
iSum += chInput - '0';
chPreInput = chInput;
}
if (iSum == 0) break;
// 足し... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127945/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127945/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
#include <string.h>
int main(){
char str[1001];
int sum = 0;
while(1){
scanf("%s",str);
if(strcmp(str,"0") == 0){
break;
}
for(int i = 0;str[i] != '\0';i++){
sum += str[i] - '0';
}
printf("%d\n",sum);
sum = 0;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_127996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_127996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 hanazawa_kana[1024];
while (scanf("%1023s", hanazawa_kana) == 1 && strcmp(hanazawa_kana, "0") != 0) {
int horie_yui = 0;
char *noto_mamiko;
for (noto_mamiko = hanazawa_kana; *noto_mamiko != '\0'; noto_mamiko++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main()
{
char num[] = ""; //数字の文字列
char naa;
int n; //各桁の和
int i;
while (1)
{
n = 0;
while (isalnum((naa = fgetc(stdin))))
{
n += naa - '0';
}
if (n == 0)
break;
printf("%d\n", n);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main(void){
char x[4096];
int sum,i;
while(1){
scanf("%s",x);
if(x[0] == '0' && x[1] == '\0')
break;
sum = 0;i = 0;
while(x[i] != '\0')
sum += x[i++] - '0';
printf("%d\n",sum);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*#include <iostream>
#include <vector>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#include <cstring>*/
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
//using namespace std;
#define FOR(i, a, b) for(i = (int )a; i < (int )b; ++i)
#de... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12819/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12819/source.c"
target datalayout = "e-m:e-p270: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.stack = type { [101 x... |
#include<stdio.h>
int main(void){
int N,i;
scanf("%d",&N);
int A[N-1],B[N];
for(i=0;i<N-1;i++){
scanf("%d",&A[i]);
B[i] = 0;
}
B[N-1] = 0;
for(i=0;i<N-1;i++)
B[A[i]-1]++;
for(i=0;i<N;i++)
printf("%d\n",B[i]);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128232/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
int n,i;
scanf("%d", &n);
int a[n-1],c[n];
for (i = 0; i < n-1; i++) {
scanf("%d", &a[i]);
}
for(i=0;i<n;i++){
c[i] = 0;
}
for (i = 0; i < n-1; i++) {
c[a[i]-1]++;
}
for (i = 0; i < n; i++) {
printf("%d\n", c[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128283/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
int n,i,j;
scanf("%d",&n);
int x[n-1],y[n];
for(i=0;i<n-1;i++)
{scanf("%d",&x[i]);
y[i]=0;}
y[i]=0;
for(i=0;i<n-1;i++)
y[x[i]-1]++;
for(i=0;i<n;i++)
printf("%d\n",y[i])... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128326/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
long int N, i, j;
long int A[200001], B[200001] = {0};
scanf("%ld", &N);
for(i = 1; i < N; i++)
scanf("%ld", &A[i]);
for(i = 0; i < N; i++){
j = A[i] - 1;
B[j]++;
}
for(i = 0; i < N; i++)
printf("%ld\n", B[i]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128377/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128377/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[4],sum=0,i;
for(i=0;i<4;i++)
{
scanf("%ld",&a[i]);
}
char str[100001];
scanf("%s",str);
i=0;
while(str[i]!='\0')
{
sum+=a[str[i]-'0'-1];
i++;
}
printf("%ld",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12842/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,x,i;
int enp[200001];
for(x=0;x<200001;x++)
enp[x]=0;
scanf("%d",&n);
for(i=1;i<n;i++){
scanf("%d",&x);
enp[x]++;
}
for(x=1;x<=n;x++){
printf("%d\n",enp[x]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128463/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128463/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200001];
int b;
scanf("%d", &b);
int c = 0;
for (int i = 0; i < b; i++)
{
a[i]=0;
}
for (int i = 0; i < b-1; i++)
{
scanf("%d", &c);
a[c-1]++;
}
for (int i = 0; i < b; i++)
{
printf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128513/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128513/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdbool.h>
int main(void) {
int N;
int S[200000] = {0};
int A;
scanf("%d", &N);
for(int i = 1; i < N; i++) {
scanf("%d", &A);
S[A-1]++;
}
for(int i = 0; i < N; i++) {
printf("%d\n", S[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128557/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128557/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define MAX_SIZE 100001
int main(void)
{
int i, A[4];
char S[MAX_SIZE];
long long ans;
for (i = 0; i < 4; i++)
scanf("%d", &A[i]);
scanf("%s", S);
ans = 0;
for (i = 0; S[i] != 0; ++i)
{
int ind = S[i] - '1';
ans += A[ind];
}
printf("%I64d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12860/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12860/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
void graph(int n){ /*nÔÚÌíÞÌACXª¢Â é©ð\¦·éOt */
int i;
if (n != 0){ /*àµAACXª1ÂÅàê½Èç*/
for (i = 0; i < n; i++) {
printf("*");
}
printf("\n");
}
else{ /*»¤ÅȯêÎ */
printf("-\n");
}
}
int main(void)
{
int i;
int j;
int n; /*ACX... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128650/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128650/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.3 = private unnamed_a... |
#if 0
cat <<EOF >mistaken-paste
#endif
// thx Ebi-chan!
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#define VERYBI... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128694/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128694/source.c"
target datalayout = "e-m:e-p270: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.hwll = type { i64, ... |
#include <stdio.h>
int main(int argc, const char * argv[])
{
int n, i, j, random;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &random);
printf("Case %d:\n", i);
for (j = 0; j < 10; j++) {
random = random * random / 100 % 10000;
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128751/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128751/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>=10) printf("error\n");
else printf("%d\n",a+b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128795/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128795/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
// Your code here!
int a,b;
scanf("%d%d",&a,&b);
if(a+b>=10) printf("error");
else printf("%d",a+b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128838/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128838/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128881/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128881/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(a+b>=10?"error":"%d",a+b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128939/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<10){
printf("%d",A+B);
}else{
printf("error");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_128982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_128982/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<10) printf("%d",a+b);
else printf("error");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129031/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129031/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&a);
scanf("%d",&b);
c=a+b;
if(c<=9){
printf("%d",c);
}else if(c>=10){
printf("error\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129082/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129082/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <assert.h>
#include <math.h>
int main(void)
{
int A,B;
scanf("%d %d\n",&A,&B);
if (A+B>=10){
printf("error\n");
}
else {
printf("%d\n",A+B);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129125/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129125/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x=a+(a*a)+(a*a*a);
printf ("%d",x);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129183/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129183/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y;
scanf("%d",&a);
y=a+(a*a)+(a*a*a);
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129226/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129226/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ABS(x) ((x) < 0 ? -1*(x) : (x))
#define MAX(x,y) ((x) > (y) ? (x) : (y))
#define MIN(x,y) ((x) < (y) ? (x) : (y))
#define MOD 1000000007
#define INF 2000000000
char str[110];
int arr[110];
int main()
{
int i,N,num,j,k;
scanf("%s", str);
N = strlen(st... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12927/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12927/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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);
int b;
b=a+(a*a)+(a*a*a);
printf("%d\n",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129312/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.