Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
typedef long long ll;
ll gcd(ll u,ll v) {
ll r = u % v;
if( r == 0LL ) return v;
return gcd(v,r);
}
int main() {
ll u,v;
scanf("%lld %lld",&u,&v);
printf("%lld\n",gcd(u,v));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159303/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159303/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d",&a,&b);
while((c=a%b)!=0)
{
a=b;
b=c;
}
printf("%d\n",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159347/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159347/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int x,y,i,d;
while(1){
scanf("%d %d", &x,&y);
if(x>=1 && y<=1000000000)break;
}
if(x>y){
d=x%y;
for(i=d ; i>0 ; i--){
if(y%i==0 && d%i==0)break;
}
}
else if(x<y){
d=y%x;
for(i=d ; i>0 ; i--){
if(x%i==0 && d%i==0) break;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159390/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159390/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int x,y,smo,big,arr=1,arr2,ans;
scanf("%d%d",&x,&y);
if(x>=y){
smo=y;
big=x;
}
else{
smo=x;
big=y;
}
while(1){
arr=(big%smo);
if(arr==0){
ans=smo;
break;
}
arr2=smo;
smo=arr;
big=arr2;
}
printf("%d\n",a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
if (b == 0) return a;
else return gcd(b, a % b);
}
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
printf("%d\n", gcd(x, y));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(long int x, long int y);
int main(void) {
long int x = 0;
long int y = 0;
scanf("%ld %ld", &x, &y);
printf("%d\n", gcd(x, y));
return 0;
}
int gcd(long int x, long int y) {
long int tmp = 0;
if (x < y) {
tmp = x;
x = y;
y = tmp;
}
while (y > 0) {
tmp = x % y;
x = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159527/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int gcd;
scanf("%d%d", &a, &b);
if( a > b ) {
gcd = a % b;
while(1) {
if(((b % gcd) == 0) && (((a % b) % gcd) == 0)) break;
else gcd--;
}
}
else if( a < b ) {
gcd = b % a;
while(1) {
if(((a % gcd) == 0) && (((b % a) % gcd) ==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159570/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int x,y;
scanf("%d%d",&x,&y);
while(1){
if(x<y) y=y%x;
else x=x%y;
if(x==0||y==0) break;
}
if(x==0) printf("%d\n",y);
else if(y==0) printf("%d\n",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159613/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159613/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int x,y,z,n;
scanf("%d %d",&x,&y);
if( x < y ){
n = x;
x = y;
y = n;
}
z = x % y;
while( z != 0){
x = y;
y = z;
z = x % y;
}
printf("%d\n",y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159657/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159657/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,S,i,x;
scanf("%d%d",&a,&b);
if(a>=b)
{
x=a;
a=b;
b=x;
}
while(b>0)
{
x=a%b;
a=b;
b=x;
}
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159707/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x, y, itizi, amari = -1;
scanf("%d %d", &x, &y);
if (y >= x){
itizi = x;
x = y;
y = itizi;
}
amari = x % y;
if(amari == 0){
printf("%d\n", y);
}else {
while( (y % amari) != 0){
x = y;
y = amari;
amari = x % y;
}
printf("%d\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159750/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
if(a==b) return a;
else if(a>b) return gcd(a-b,b);
else return gcd(a,b-a);
return 0;
}
int main(void){
int x,y;
scanf("%d %d",&x,&y);
printf("%d\n",gcd(x,y));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159794/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
if (0 == b) return a;
return gcd(b, a%b);
}
int main(int argc, char** argv) {
int a, b;
while (~scanf("%d%d", &a, &b)) {
printf("%d\n", gcd(a,b));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159837/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159837/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
if(a%b==0)
return b;
else
return(gcd(b,a%b));
}
int main(void)
{
int x,y,tmp;
scanf("%d %d",&x,&y);
if(y>x){
tmp=x;
x=y;
y=tmp;
}
printf("%d\n",gcd(x,y));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159880/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159880/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x,y,z;
scanf("%d%d",&x,&y);
while(x%y!=0){
z = x%y;
x = y;
y = z;
}
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159923/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159923/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int num;
scanf("%d%d",&a,&b);
if(a<b)
{
num=a;
a=b;
b=num;
}
while((num=a%b)!=0)
{
a=b;
b=num;
}
printf("%d\n",b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159967/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159967/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x,y,z,d;
scanf("%d%d",&x,&y);
if(x<y){
while((d=y%x)!= 0){
y=x;
x=d;
}
printf("%d\n",x);
}
else{
while((d=x%y)!=0){
x=y;
y=d;
}
printf("%d\n",y);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x,y,z,ans;
scanf("%d %d",&x,&y);
if(x>=y){
while(1){
z=x%y;
if(z==0){
ans=y;
break;
}
x=y;
y=z;
}
}
else if(y>x){
while(1){
z=y%x;
if(z==0){
ans=x;
break;
}
y=x;
x=z;
}
}
printf("%d\n",an... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x,y,z;
scanf("%d%d",&x,&y);
z = x % y ;
while(z> 0){
z = x % y;
x = y;
y = z;
}
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,remainder,tmp;
scanf("%d%d",&a,&b);
if(a<b){
tmp=a;
a=b;
b=tmp;
}
remainder=a%b;
while(remainder!=0){
a=b;
b=remainder;
remainder=a%b;
}
printf("%d\n",b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160145/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160145/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,c;
scanf("%d%d",&a,&b);
if (a<1||b<1||a>1000000000||b>1000000000) {
printf("atai yokunai\n");
exit(1);
}
if (a<b){
c=a;
a=b;
b=c;
}
while(b>0){
c=a%b;
a=b;
b=c;
}
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160202/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int a,b,c;
int main()
{
scanf("%d%d",&a,&b);
if(b<a)b^=a^=b^=a;
for(;b!=0;a=b,b=c)c=a%b;
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160268/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160268/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int x,y;
scanf("%d%d",&x,&y);
if(x<y){
int i=x;
x=y;
y=i;
}
while(y>0){
int i=x%y;
x=y;
y=i;
}
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160354/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160354/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int x,y,z;
scanf("%d %d",&x,&y);
while(x>0)
{
z=y%x;
y=x;
x=z;
}
printf("%d\n",y);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160404/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160404/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int x,y,a,d;
scanf("%d%d",&x,&y);
if(x<y){
a=x;
x=y;
y=a;
}
while((d=x%y)!=0){
x=y;
y=d;
}
printf("%d\n",y);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160448/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160448/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,r,c;
scanf("%d%d",&a,&b);
if(a<b){
c = a;
a = b;
b = c;
}
r = a%b;
while(r!=0)
{
a = b;
b = r;
r = a%b;
}
printf("%d\n",b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160491/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160491/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int x,y,z,r;
scanf("%d%d",&x,&y);
if(x<y){
z = x;
x = y;
y = z;
}
while(y>0)
{
if(x>=y)
{
r = x%y;
x = y;
y = r;
}
}
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160534/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160534/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, r;
if(x < y)
{
tmp = x;
x = y;
y = tmp;
}
while(y > 0){
r = x % y;
x = y;
y = r;
}
return x;
}
int main(void)
{
int x, y;
scanf("%d %d", &x, &y);
printf("%d\n", gcd(x, y));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160592/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160592/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int x, y, z, temp;
scanf("%d %d", &x, &y);
if (x <= y) { // swap
temp = x;
x = y;
y = temp;
}
while (y > 0) { // euclidean algorithm
z = x % y;
x = y;
y = z;
}
printf("%d\n", x);
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160635/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160635/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d",&a,&b);
if(a < b){
c = a;
a = b;
b= c;
}
while(1){
if(a % b == 0){
printf("%d\n",b);
break;
}
c = a % b;
a = b;
b = c;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160679/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int m, n, tmp;
scanf("%d %d", &m, &n);
if (m < n)
{
tmp = m;
m = n;
n = tmp;
}
for (;;)
{
tmp = m % n;
m = n;
n = tmp;
if (n == 0) break;
}
printf("%d\n", m);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c,r;
scanf("%d%d",&a,&b);
if(a>b){
c=a;
a=b;
b=c;
}
while(b>0){
r=a%b;
a=b;
b=r;
}
printf("%d\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160765/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160765/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,l;
scanf("%d%d",&n,&m);
if(n<m){
l=n;
n=m;
m=l;
}
k=n%m;
while(k!=0){
n=m;
m=k;
k=n%m;
}
printf("%d\n",m);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160808/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x, y, z, a, flag = 0;
scanf("%d %d", &x, &y);
if(x<y){
z = x;
}else if(x>y){
z = y;
flag = 1;
}else{
flag = 2;
}
if(flag == 0){
for(i = y%x; i > 0; i--){
if(y % i == 0){
if(x % i == 0){
printf("%d\n", i);
break;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160851/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,int);
int main(){
int x,y;
int gcd;
scanf("%d %d",&x,&y);
gcd = GCD(x,y);
printf("%d\n",gcd);
}
int GCD(int x,int y){
int z;
if(y>x){
z = y;
y = x;
x = z;
}
while(1){
z = x%y;
if(z==0)break;
x = y;
y = z;
}
return y;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160901/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160901/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[20];
int v[20];
int n;
int b;
int i;
int max;
scanf("%d", &n);
max = 0;
for (i = 0; i < n; i++){
scanf("%d %d", &a[i], &v[i]);
if (max < v[i]){
max = v[i];
b = a[i];
}
}
for (i = 0; i < n; i++){
if (max == v[i] && a[i] < b){
b = a[i];
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160945/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160945/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int n, a_min, v_max = -1;
scanf("%d", &n);
while(n--) {
int a, v;
scanf("%d%d", &a, &v);
if (v_max < v || (v_max == v && a < a_min)) {
a_min = a;
v_max = v;
}
}
printf("%d %d\n", a_min, v_max);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
char S[15];
scanf("%s", S);
if(S[5]=='0' && S[6]<='4' &&S[6] >='1'){
printf("Heisei\n");
}else{
printf("TBD\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main() {
char s[11], t[11] = "2019/04/30";
scanf("%s", s);
if (strcmp(s, t) <= 0) {
printf("Heisei\n");
} else {
printf("TBD\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.t = private u... |
#include<stdio.h>
#include<string.h>
int main (void)
{
char date[11];
scanf("%s", date);
if(strcmp(date,"2019/04/30")<=0)
printf("Heisei\n");
else
printf("TBD\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161146/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161146/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int t,i;scanf("%d",&t);
for(i=0;i<t;i++){
long int n,m,b;
scanf("%ld",&n);
m=n/3;
b=n%3;
if(b==0){
printf("%ld %ld\n",m,m);
}
if(b==1){
printf("%ld %ld\n",m+1,m);
}
if(b==2){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16119/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16119/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 Check(char S[16]){
int i, Y, M, D, y, m, d;
Y = 2019;
M = 4;
D = 30;
y = 0;
for(i = 0;i < 4;i++) y = y * 10 + S[i] - '0';
if(Y < y) return 0;
else if(Y > y) return 1;
m = 0;
for(i = 0;i < 2;i++) m = m * 10 + S[i+5] - '0';
if(M < m) return 0;
else if(M > m) return 1;
d =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161232/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 y, m, d;
scanf("%d/%d/%d", &y, &m, &d);
if(m<=4){
printf("Heisei");
}
else{
printf("TBD");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161283/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MOD1 1000000007
#define MOD2 998244353
#define LIMIT1 200002
#define LIMIT2 500002
typedef long long ll;
typedef long double ld;
#define rep(i,n) for(i=0;i<n;i++)
#define max(a,b) ((a)>(b) ? (a) : (b))
#define min(a,b) ((a)<(b) ? (a) :... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161326/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dx = dso_local local_unnam... |
#include<stdio.h>
#include<stdlib.h>
typedef long long int ll;
int main()
{
ll t,i;
scanf("%lld",&t);
for(i=0;i<t;i++)
{
ll n;
scanf("%lld",&n);
if(n%3==0)
{
printf("%lld %lld\n",n/3,n/3);
}
else if(n%3==1)
{
printf("%lld %l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16137/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 t,i,j,cancel,b[26];
char a[51];
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%s",a);
for(j=0;j<26;j++)
{
b[j]=0;
}
for(j=0,cancel=0;j<strlen(a);j++)
{
b[a[j]-97]++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16142/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<math.h>
int main()
{
long long n,tmp;
scanf("%lld",&n);
long i;
long long answ=n-1;
for(i=2;i<3000000;i++)
{
if(n%i==0)
{
tmp=i+(n/i)-2;
if(tmp<answ)
answ=tmp;
}
}
printf("%lld",answ);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161463/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161463/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 A,B,C,D;
scanf("%ld", &A);
C = A;
for(int i = 1;i<C;i++){
if(A%i == 0){
C = A/i;
B = i;
D=0;
}
D = D+1;
if(D == 1000000){
break;
}
}
long int d;
d = (B-1) + (C-1);
printf("%ld",d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161506/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int t,n;
scanf("%d",&t);
for(int i=0;i<t;i++)
{
scanf("%d",&n);
if(n%3==0)
{
printf("%d %d\n",n/3,n/3);
}
else if(n%3==2)
{
printf("%d %d\n",n/3,((n/3)+1));
}
else if(n%3==1)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16155/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16155/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
int main(int argc,const char *argv[]){
int i,n,S[1001];
double a,ave,sum;
while(1){
ave=0;
a=0;
sum=0;
scanf("%d",&n);
if(n==0){
break;
}
for(i=0;i<n;i++){
scanf("%d",&S[i]);
sum+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161593/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161593/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void)
{
int data[1000];
int i, n;
double sum, ave, devsq, var, stdev;
while(1)
{
scanf("%d", &n);
if( n==0 )break;
sum=0;
for(i=0; i<n; i++)
{
scanf("%d", &data[i]);
sum+=data[i];
}
ave = sum/n;
var=0;
for(i=0; i<n; i++)
var += ((double... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161643/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161643/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(){
int n,i,sum,s[1000];
double ave,a;
while(1){
sum=0;
ave=0.0;
a=0.0;
scanf("%d",&n);
if(n==0) break;
for(i=0;i<n;i++){
scanf("%d",&s[i]);
sum=sum+s[i];
}
ave=(double)sum/n;
for(i=0;i<n;i++){
a=a+(s[i]-ave)*(s[i]-ave);
}
printf("%lf\n",sq... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161687/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,b,c;
scanf("%d",&b);
if (b == 1)
printf("Hello World");
else
{
scanf("%d",&a);
scanf("%d",&c);
printf("%d",a+c);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161737/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161737/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,a,b;
scanf("%d",&n);
if(n==2){
scanf("%d%d",&a,&b);
printf("%d",a+b);
}else{
printf("Hello World");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161788/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161788/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int N;
scanf("%d", &N);
if(N == 1)
printf("Hello World\n");
else{
int A, B;
scanf("%d%d", &A, &B);
printf("%d\n", A+B);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161830/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int N;
scanf("%d",&N);
if(N==1){
printf("Hello World");
}
if(N==2){
int A,B;
scanf("%d",&A);
scanf("%d",&B);
printf("%d\n",A+B);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161874/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161874/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int a,b;
scanf("%d",&n);
if(n==1){
printf("Hello World");
}
else if(n==2){
scanf("%d",&a);
scanf("%d",&b);
printf("%d",a+b);
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161924/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161924/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n,a,b;
scanf("%d",&n);
if(n==1) printf("Hello World");
if(n==2)
{
scanf("%d %d",&a,&b);
printf("%d",a+b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161968/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161968/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct evt {
int floor;
int time;
};
int evtcmp(const void* a, const void*b)
{
struct evt* e = (struct evt*) a;
struct evt* f = (struct evt*) b;
return (e->floor < f->floor) - (e->floor > f->floor);
}
int main()
{
int n, s;
scanf("%d %d", &n, &s);
struct evt evts[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16201/source.c"
target datalayout = "e-m:e-p270: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.evt = type { i32, i32... |
#include <stdio.h>
int main(void){
int a, b;
int n;
scanf("%d", &n);
if (n == 1){
printf("Hello World\n");
}else{
scanf("%d\n%d", &a, &b);
printf("%d", a + b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162053/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, char const *argv[])
{
int n,a,b;
scanf("%d",&n);
if(!(n - 1)){
printf("Hello World\n");
}
else{
scanf(" %d %d",&a,&b);
printf("%d\n",a + b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162110/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162110/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W,m,hmax=0,wmax=0;
scanf("%d %d %d",&H,&W,&m);
int hbomb[H+1],h[m+1],wbomb[W+1],w[m+1];
for(int i=1;i<=H;i++){
hbomb[i]=0;
}
for(int i=1;i<=W;i++){
wbomb[i]=0;
}
for(int i=1;i<=m;i++){
scanf("%d %d",&h[i],&w[i]);
hbomb[h[i]]+=1;
wbo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162161/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162161/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma GCC optimize("Ofast")
#include<stdio.h>
int main(void)
{
int n = 0, a = 0, b;
int d[200000];
char c=getchar_unlocked();
while(c<='9'&&c>='0') {n=(n<<1)+(n<<3)+c-'0'; c=getchar_unlocked();}
int* e = d + n;
do
{
d[n] = 0;
c=getchar_unlocked();
while(c<='9'&&c>='... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162219/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162219/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include<stdio.h>
void paixu(int left,int right);
int a[101],b[101],v[1000];
int main()
{
int n,s,i,j,k,ans;
scanf("%d%d",&n,&s);
for(i=1;i<=n;i++)
scanf("%d%d",&a[i],&b[i]);
paixu(1,n);
int temp=s, time=0;
i=j=1;
while(i<=n)
{
time+=temp-a[i];
temp=a[i];
if(t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16227/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16227/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef long long ll;
ll min(ll x, ll y) {
return x < y ? x : y;
}
int main() {
ll a, b, c;
scanf("%lld%lld%lld", &a, &b, &c);
if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) {
printf("0\n");
} else {
printf("%lld\n", min(a * b, min(b * c, c * a)));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162312/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long int lli;
int main(void){
lli a,b,c;
scanf("%lld%lld%lld",&a,&b,&c);
if(!(a%2) || !(b%2) || !(c%2)){
printf("%d\n", 0);
}else{
if(a >= b && a >= c){
printf("%lld\n",b*c);
}else if(b >= a && b >= c){
printf("%lld\n", a*c);
}else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162356/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162356/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int i,j;
int h,w;
while(1){
scanf("%d %d",&h,&w);
if(h==0&&w==0)
break;
for(i=0;i<h;i++){
if(i==0 || i==h-1){
for(j=0;j<w;j++)
printf("#");
}
else{
printf("#");
for(j=0;j<w-2;j++)
printf(".");
printf("#");
}
puts("");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162406/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162406/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 SQ(x) (x)*(x)
typedef long long ll;
int main()
{
ll n, m, c=0, cm=0, i, j, val, sr=0;
scanf("%I64d %I64d",&n,&m);
ll q = n/m;
ll rem = n - q*m;
//printf("%d",rem);
ll fin = q*m;
ll mod = m ;
for(i=1;i<=m;++i){
for(j=1;j<=m;++j){
val = i*i + j*j;
if(val % m == 0){
++cm;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16245/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,arr[107]={0};
scanf("%d", &n);
for(int i=0;i<n;i++)
{
int r;
scanf("%d", &r);
for(int j=0;j<r;j++)
{ int l;
scanf("%d", &l);
arr[l]++;
}
}
for(int i=0;i<=100;i++)
{ if(arr[i]==n)
printf("%d ",i);
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16250/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16250/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 h,w,i,s;
while(1){
scanf("%d %d",&h,&w);
if(h==0 && w==0)break;
for(i=0; i<h; i++){
if(i==0||i==h-1){
for(s=0;s<w;s++){
printf("#");
}
puts("");
}else{
for(s=0;s<w;s++){
if(s==0||s==w-1){
printf("#");
}else{
printf(".");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162550/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162550/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int i,j;
int h, w;
while(1){
scanf("%d %d", &h,&w);
if(h==0 && w==0) break;
for(i=0; i<w; i++) printf("#");
printf("\n");
for(i=0; i<h-2; i++){
printf("#");
for(j=0; j<w-2; j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162594/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162594/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i, j;
while( scanf("%d %d",&a,&b) != 0 ){
if(a == 0 && b == 0)
break;
for(i = 0; i < a; i++){
for(j = 0; j < b; j++){
if(i == 0 || i == a-1)
printf("#");
else if(j ==0 || j == b-1)
printf("#");
else
printf(".");
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162651/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162651/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,w,i,j;
while(1){
scanf("%d %d", &h, &w);
if(h==0&&w==0)break;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(i==0 || i==h-1 || j==0 || j==w-1)printf("#");
else printf(".");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162709/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162709/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100][101],i,j,k,rmin=101,ri,ans[100],flag1,l,m,p=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&arr[i][0]);
if(arr[i][0]<rmin)
{rmin=arr[i][0];
ri=i;}
for(j=1;j<=arr[i][0];j++)
scanf("%d",&arr[i][j]);
}
for(k=1;k<=rmin;k++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16276/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16276/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
int x,y,z;
char mp[12][12][12];
void nul(int a,int b,int c,char from, char to){
if(a<0||b<0||c<0||a>=x||b>=y||c>=z||mp[a][b][c]!=from) return;
mp[a][b][c]=to;
nul(a-1,b,c,from,to);
nul(a+1,b,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16281/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16281/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@x = dso_local global i32 0, ... |
#include <stdio.h>
int main() {
int n, i, a[200002], ans=1, flag=0;
scanf("%d %d %d", &n, &a[0], &a[1]);
if (a[0] < a[1])flag = 1;//単調増加
if (a[0] > a[1])flag = -1;//単調減少
for (i = 2; i < n; i++) {
scanf("%d", &a[i]);
if (a[i - 1] > a[i]) {
if (flag == 0) {
flag = -1;
}
else if (flag == 1) {
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162860/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162860/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int a[100000];
char d = 'n';
int i;
int ans = 1;
/* input */
scanf("%d", &n);
for(i=0; i<n; i++)
scanf("%d", &a[i]);
/* to do */
for(i=1; i<n; i++){
if(a[i-1] < a[i]){ //増加
if(d == 'n'){
d = 'u';
continue;
}
else if(d == 'd'){
d = 'n';
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162910/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162910/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AtCoder ABC131: D - Megalomania
// 2019.9.4 bal4u
#include <stdio.h>
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in() { // 非負整数の入力
int n = 0, c = gc();
do n = 10 * n + (c & 0xf); while ((c = gc()) >= '0');
return n;
}
typedef struct { int a, b; } T;
T t[200005]; int N;
voi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162954/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162954/source.c"
target datalayout = "e-m:e-p270: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.T = type { i32, i32... |
#include<stdio.h>
#include<stdlib.h>
long long int a[200005], b[200005];
int asc(const void* x, const void* y)
{
if (b[*(int*)x] > b[*(int*)y])return 1;
if (b[*(int*)x] < b[*(int*)y])return -1;
return 0;
}
int main()
{
int n;
scanf("%d", &n);
int i;
for (i = 0; i < n; i++)
scanf("%lld %lld", &a[i], &b[i]);
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_162998/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_162998/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@b = dso_local global [2000... |
#include<stdio.h>
int main()
{
int a,b,a2=0,b2=0,a3=0,b3=0,a5=0,b5=0;
scanf("%d %d",&a,&b);
while(a%2==0)
{
++a2;
a/=2;
}
while(a%3==0)
{
++a3;
a/=3;
}
while(a%5==0)
{
++a5;
a/=5;
}
while(b%2==0)
{
++b2;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16304/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16304/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
long long sumf(long long, long long);
int main()
{
long long n, a;
long long ans, sum;
scanf("%d", &n);
ans = sumf(1, 0) + sumf(n - 1, 0);
for (a = 2; a <= n / 2; ++a)
{
sum = sumf(a, 0) + sumf(n - a, 0);
if (ans > sum)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163090/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
cat <<EOF >mistaken-paste
*/
#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 VERYBIG 200000000000007LL
#de... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163133/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163133/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x;
scanf("%d",&N);
if(400<=N && N<600){
x = 8;
}else if(600<=N && N<800){
x = 7;
}else if(800<=N && N<1000){
x = 6;
}else if(1000<=N && N<1200){
x = 5;
}else if(1200<=N && N<1400){
x = 4;
}else if(1400<=N && N<16... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163184/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163184/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>= 400 && x<=599){
printf("%d",8);
}
else if(x>=600 && x<=799){
printf("%d",7);
}
else if(x>=800 && x<=999){
printf("%d",6);
}
else if(x>=1000 && x<=1199){
printf("%d",5);
}
else if(x>=1200 && x<=1399){
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163227/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163227/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define PI 3.141592653589793
#define MOD 1000000007
//#define DEBUG
//qsort用、昇順
int compare_int(const void *a, const void *b)
{
return *(int*)a-*(int*)b;
}
//qsort(array, 10, sizeof(int), compare_int)
int main(){
int x, r;
scanf("%d", &x);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163270/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163270/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int abs(int n)
{
if (n < 0)
n *= -1;
return n;
}
int main()
{
int n, z, w;
scanf("%d %d %d", &n, &z, &w);
int i, j, k;
int a[2003];
for (i = 0; i < n; i++)
scanf("%d", &a[n - i - 1]);
a[n] = w;
int dp[2][2003];
dp[0][0] = dp[1][0] = abs(a[0] - a[1]);
for (i = 1; i < n; i++)
{
k = abs... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163320/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163320/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum = 0;
scanf("%d",&n);
for(int i=1;i<=n;i++){
sum += i;
}
printf("%d\n",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163364/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163364/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum=0;
scanf("%d",&n);
for(int i=0;i<=n;i++)
{
sum = sum+i;
}
printf("%d\n",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163407/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163407/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&n);
printf("%d",n*(n+1)/2);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163450/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163450/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int n,a,i;
scanf("%d",&n);
a=0;
for (i=1;i<=n;i++){
a=a+i;
}
printf("%d\n",a);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163494/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163494/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;scanf("%d",&n);
int ans;
if(n%2 == 0)
ans = ((n/2)*2+1)*n/2;
else
ans = (n/2+1)*n;
printf("%d",ans);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163537/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c=0,i;
scanf("%d",&a);
for(i=1;i<=a;i++) {
c=c+i;}
printf("%d\n",c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163580/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163580/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&n);
int sum;
sum=(n*(n+1))/2;
printf("%d",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163623/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163623/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 children,i,candy;
char str[4];
fgets(str,sizeof(str),stdin);
sscanf(str,"%d",&children);
for(i=1;i<=children;i++)
{
candy += i;
}
printf("%d",candy);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163667/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163667/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
#define MAX 100
int main()
{
int n, a[MAX],i,m,x,y;
scanf("%d",&n);
for(i=0; i<n; i++)
scanf("%d",&a[i]);
scanf("%d",&m);
for(i=0; i<m; i++)
{
scanf("%d%d",&x,&y);
if (x!=1 && x!=n)
{
a[x-2] += y-1;
a[x] += a[x-1] -y;
a[x-1] = 0;
}
else if (x==1)
{
a[x] += a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16371/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16371/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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\n", n*(n + 1) / 2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163753/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163753/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 func(int a)
{
if (a == 1)
{
return 1;
}
else {
return func(a - 1)+a;
}
}
int main()
{
int num, ans;
//階乗を求める
scanf("%d", &num);
ans = func(num);
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163797/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163797/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count=0;
void countday(int,int);
int main()
{
char a[100];
char b[100];
scanf("%s",a);
scanf("%s",b);
int day1,day2,month1,month2,year1,year2,day11,month11,year11,year,month,day,t;
year1=(a[0]-48)*1000+(a[1]-48)*100+(a[2]-48)*10+(a[3]-48);
year2=(b[0]-48)*1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16384/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16384/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@count = dso_local local_unna... |
#include <stdio.h>
#include <stdint.h>
int main() {
uint32_t N;
scanf("%u", &N);
uint32_t count = 0;
for(uint32_t i=1;i<=N;i++)
count += i;
printf("%u\n", count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163883/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163883/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <time.h>
#include <string.h>
#include <math.h>
#define MOD 1000000007
#define REP(i,n) for ((i)=0;i<(n);i++)
#define SET(a,c) memset(a,c,sizeof a)
#define CLR(a) memset(a,0,sizeof a)
#define MIN(a,b) (a>b?b:a)
#define MAX(a,b) (a>b?a:b)
#define LL long long
#define ULL ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163926/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.