Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
// ABC 160-E // 2020.3.28 bal4u #include <stdio.h> #include <string.h> typedef long long ll; #define gc() getchar_unlocked() int in() { // 非負整数の入力 int n = 0, c = gc(); do n = 10 * n + (c & 0xf); while ((c = gc()) >= '0'); return n; } #define QSIZE 350000 #define PARENT(i) ((i)>>1) #define LEFT(i) ((i)<<1) #...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324779/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324779/source.c" target datalayout = "e-m:e-p270: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.QUE = type { i32, i...
#include <stdio.h> int main(void){ int n,i; scanf("%d",&n); long long a[n],ans=0; for(i=0;i<n;i++){ scanf("%lld",&a[i]); } for(i=0;i<n;i++){ while(a[i]%2==0){ a[i]+=a[i]/2; ans++; } } printf("%lld",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324829/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324829/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 V[10005]; int main() { int N, cont=0; scanf("%d", &N); // int *V = (int *) malloc(sizeof(int)*N); for (int i = 0; i < N; i++) { scanf("%d", &V[i]); while (V[i] % 2 == 0) { cont++; V[i] /= 2; } } printf("%d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324872/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324872/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count=0,i; int a[10000]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); while((a[i]%2)==0){ count++; a[i]/=2; } } printf("%d",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324922/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324922/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[11000],n,x,sum=0; scanf("%d",&n); for(x=0;x<n;x++){ scanf("%d",&a[x]); } for(x=0;x<n;x++){ while(1){ if(a[x]%2==0){ sum++; a[x]/=2; } else{ break; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_324973/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_324973/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,n,total=0; scanf("%d",&n); for(i=0;i<n;i++){ int k=0,j; scanf("%d",&j); while((j%2) != 1){ j /= 2; k++; } total += k; } printf("%d",total); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325022/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325022/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100000]; scanf("%s",S); getchar(); int l=strlen(S); l--; int i=0; for(i=l;i>0;){ if(i<4){ break; } if(S[i]=='r'&&S[i-1]=='e'&&S[i-2]=='s'&&S[i-3]=='a'&&S[i-4]=='r'&&S[i-5]=='e'){ i-=6; } else if(S[i]=='r'&&S[i-1]=='e'&&S[i-2]=='m'&&S[i-3]==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325066/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325066/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n; scanf("%d",&n); int a[100002],i,ans=0;a[0]=0; for(i=1;i<=n;i++){ scanf("%d",&a[i]); ans+=abs(a[i]-a[i-1]); } ans+=abs(a[n]); a[n+1]=0; for(i=1;i<n+1;i++){ // printf("%d\t",i); if(a[i]-a[i-1]>0){ if(a[i+1]-a[i]>=0){ pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325116/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325116/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int main() { int n,a,b,i,j; int p[100005]={0}; int s[100005]={0}; int c[100005]={0}; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d",&p[i]); } for(j=1,a=0;j<n;j++) { a+=abs(p[j]-p[j-1]); s[j]=a; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325167/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325167/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long i,j,N,sum=0; scanf("%lld",&N); for (i = 1; i*i <= N; i++) { if((N-i)%i==0) { j=(N-i)/i; if(j&&N/j==N%j)sum+=j; } if(N/i==N%i) sum+=i; } printf("%lld\n",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325231/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325231/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> typedef long long int lli; #define min(a,b) (a<b?a:b) int main(void){ lli n; scanf("%ld",&n); // printf("%ld\n",n); lli ans=0,sq,i; i=1;sq=2; while(sq<n){ if(n%i==0){ ans+=n/i-1; // printf("i=%4ld, %ld\n",i,ans); } i++; sq=i*(i+1); } printf("%ld",an...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325275/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325275/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); char S[101]; scanf("%s", S); int Red = 0; int Blue = 0; for(int i = 0; i < N; i++) { if(S[i] == 'R') { Red++; } else { Blue++; } } if(Red > Blue) { printf("Yes\n"); } else { printf("No\n"); } return 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325325/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325325/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char s[101] = {0}; if(scanf("%d", &n) != 1){ return 0; } if(scanf("%s", s) != 1){ return 0; } int red = 0; for(int i = 0; i < n ; i++){ if(s[i] == 'R'){ red++; } } printf("%s\n", red > n -...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325369/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325369/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ct = 0,N; char c; scanf("%d\n",&N); for(;N>0;N--){ scanf("%c",&c); if(c == 'R'){ct++;}else{ct--;} } if(ct > 0){printf("Yes\n");} else{printf("No\n");} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325411/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325411/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(p,q)((p)<(q)?(p):(q)) #define rep(i,l,r)for(int i=(l);i<(r);i++) int ans[3010]; int main(){ int n,x,y; scanf("%d%d%d",&n,&x,&y); rep(i,1,n+1)rep(j,i+1,n+1){ ans[min(j-i,min(abs(i-x)+1+abs(y-j),abs(i-y)+1+abs(x-j)))]++; } rep(i,1,n)printf("%d\n",ans[i]); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325455/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325455/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdint.h> static void set(unsigned int *table, unsigned int N, int px, int py, unsigned int v) { unsigned int x, y; if (px > py) { x = px; y = py; } else { x = py; y = px; } table[x + y * N] =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325512/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325512/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pasta[3], juice[2]; int i, j; for(i=0; i<3; i++) scanf(" %d", &pasta[i]); for(i=0; i<2; i++) scanf(" %d", &juice[i]); int min = pasta[0]+juice[0]-50; for(i=0; i<3; i++){ for(j=0; j<2; j++){ if(min > pasta[i]+juice[j]-50) min = pasta[i]+juice[j]-50; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325556/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325556/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000006]; int main() { int i,l; scanf("%s",&s); l=strlen(s); long long int p=0; for(i=0;i<l;i++) if(s[i]=='^') { p=i; break; } long long int anti=0,clo=0; for(i=0;i<l;i++) { if(s[i]=='^') break; if(s[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3256/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3256/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include<stdio.h> #include<math.h> #include<string.h> //gets_s ; puts #include<stdlib.h> //最大的数是一个数,找出他的所有除数,记为数组b,输入的数组a中变成1,剩下的相乘 int main() { int n, a[10001], b[10001], max = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &a[i]); if (a[i] > max) max = a[i]; } int k = 0; for (int i = 1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32565/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32565/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 data[5] = {0},p,j; int x,y; for(x=0; x<5; x++) { scanf("%d",&data[x]); } if((p=data[0]) > data[1]) p = data[1]; if(p > data[2]) p = data[2]; if((j=data[3]) > data[4]) j = data[4]; printf("%d\n",p+j-50); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325707/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325707/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 START(a) (a>0?a:0) int s,ans,ttt,a,b; int main(void){ while(scanf("%d",&s)!=EOF){ ans=0; for(a=START(s-2000);a<=2000 && s>=a;a++){ ans+=(1001-abs(1000-(s-a)))*(1001-abs(1000-a)); } printf("%d\n",ans); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325750/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325750/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d %d", &N, &A, &B); char S[N + 2]; scanf("%s", S); int cnt = A + B; int cnt_ = B; for (int i = 0; i < N; i++) { if (S[i] == 'a') { if (cnt > 0) { printf("Yes\n"); cnt -= 1; }else{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325800/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325800/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ char s[100000]; int n,a,b; scanf("%d %d %d",&n,&a,&b); scanf("%s",s); int i=0; int countA=0; int countB=0; for(i=0;i<n;i++){ if(s[i]=='a' && (countA+countB)<(a+b)){ printf("Yes\n"); countA++; } else...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325844/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325844/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, q, i, j; int count = 0; int S[110], L[110]; scanf("%d", &n); for(i = 0;i < n;i++){ scanf("%d", &S[i]); } for(i = 0;i < n;i++){ for(j = i + 1;j < n;j++){ if(S[i] == S[j]){ S[j] = -1; } } } scanf("%d", &q); for(i = 0;i < q;i++){ scanf("%d", &L[i])...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325895/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325895/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k, n, q,cnt = 0; int s[10000] ={0},t[10000]={0}; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &s[i]); } scanf("%d", &q); for (i = 0; i < q; i++) { scanf("%d", &t[i]); } for (i = 0; i < q; i++) { for (k = 0; k < n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325938/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325938/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,q,C,i,k,ba,S[100],T[100]; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&S[i]); } scanf("%d",&q); for(k=0;k<q;k++) { scanf("%d",&T[k]); } for(k=0;k<q;k++) { ba=0; for(i=0;i<n;i++) { if(S[i]==T[k] && ba==0) { C++; ba=1; } } } printf("%d\n",C); retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_325981/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_325981/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i, n , q, cnt = 0, S[100] = {0}, T[100] = {0}, flg[500] = {0}; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &S[i]); flg[S[i]] = 1; } scanf("%d", &q); for(i = 0; i < q; i++){ scanf("%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326023/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326023/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include <string.h> #include<math.h> int main(){ int a=0; int i,j,n,q; int s[101],t[101]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&s[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&t[i]); } for(j=0;j<q;j++){ for(i=0;i<n;i++){ if(t[j]==s[i]){ a++; break; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326074/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326074/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 1000 int main(){ int n, q; int s[MAX], t[MAX]; int i, j, count=0; scanf("%d", &n); for(i=0;i<n;i++){ scanf("%d", &s[i]); } scanf("%d", &q); for(i=0;i<q;i++){ scanf("%d", &t[i]); } // sの入力は重複ありだが、カウントの重複は認められない。 for(i=0;i<q;i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326124/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326124/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; double h, w; while (scanf("%d,%lf,%lf", &n, &w, &h) != EOF){ if (w / h / h >= 25){ printf("%d\n", n); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326168/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326168/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 BMI(weight,height) (weight/height)/height int main(){ int num; double weight,height; while (scanf("%d,%lf,%lf",&num,&weight,&height) != EOF){ if (BMI(weight,height) >= 25) { printf("%d\n",num); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326210/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326210/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int number; double weight,height,BMI; while(scanf("%d,%lf,%lf",&number,&weight,&height)!=EOF) { BMI=weight/height/height; if(BMI>=25) { printf("%d\n",number); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326283/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326283/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n[100],j,i=0; double b,c; while(scanf("%d,%lf,%lf",&a,&b,&c)!=EOF){ c=c*c; if(b/c>=25){ n[i]=a; i++; } } for(j=0;j<i;j++){ printf("%d\n",n[j]); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326326/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326326/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t,a,b,c,d,book=0; scanf("%d",&t); while(t--) { scanf("%d %d %d %d",&a,&b,&c,&d); book=0; for(i=a;i<=b;i++) { for(j=c;j<=d;j++) { if(i!=j) { printf("%d %...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32637/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32637/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int x, t; scanf("%d %d", &x, &t); if (x < t) printf("0\n"); else printf("%d\n", x - t); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326412/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326412/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #include <time.h> int main(int argc, char const *argv[]) { int x,t; scanf("%d%d",&x,&t); printf("%d\n", (x <= t) ? 0 : (x - t)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326456/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326456/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include <limits.h> #define MOD 1000000007 int CMP(const void * a,const void * b) { return(*(int *) a - *(int *) b); } int MAX(int a,int b) { return(a > b ? a : b); } int MIN(int a,int b) { return(a < b ? a : b); } int GCD(int a,int b)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3265/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3265/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include <stdio.h> int main() { long a,b,c,d; scanf("%ld%ld",&a,&b); if(b>=a) printf("0"); else printf("%ld",a-b); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326542/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326542/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 scanf_s scanf int main(void) { int a, x = 0, t = 0; scanf_s("%d%d", &x, &t); a = x - t; if (a < 0)a = 0; printf("%d", a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326586/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326586/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<stdbool.h> int arr[9], N, P[9], Q[9], s, t; bool flg[9]; void dfs(int x){ if(x == N){ bool p=true, q = true; for(int i=0; i<N; i++){ if(P[i] > arr[i])break; if(P[i] < arr[i]){ p = false; break; } } for(int i=0; i<N; i++){ if(Q[i] > arr[i])break;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326636/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326636/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @N = dso_local global i32 0...
#include <stdio.h> int main() { int i,f[256],c,d; char s[200001],t[200001],r; scanf("%s %s", s, t); for(i=0;i<256;i++) f[i]=0; for(i=0;t[i];i++) f[t[i]]++; c=d=0; for(i=0;s[i];i++) { if(f[s[i]]>0) { c++; f[s[i]]--; s[i]='.'; } } for(i=0;s[i];i++) if(s[i]!='.') { r=(s[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32668/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32668/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> int change(int x, int y) { if(x > y) { return x-1; } return x; } int kaijo(int x) { int ans=1; int i; for(i=2;i<=x;i++){ ans*=i; } return ans; } int main() { int N; scanf("%d", &N); int *P = (int*)malloc(N * sizeof(int)); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326722/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326722/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m; int route[1001], dice[1001]; int i, j; int now; while (scanf("%d%d", &n, &m), n || m){ now = 1; for (i = 1; i <= n; i++){ scanf("%d", &route[i]); } for (i = 1; i <= m; i++){ scanf("%d", &dice[i]); } for (i = 1; now < n; i+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326773/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326773/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdint.h> #include <math.h> #include <time.h> typedef int32_t i32; typedef int64_t i64; typedef double f64; void *const null=(void *)0; i64 const llinf=4611686018427387903LL; i64 const mod=1000000009LL; f64 const pi=3.141592653589793; f64 const rad=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326845/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326845/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @null = dso_local local_unn...
#include<stdio.h> int main() { int a,b,c,sum; scanf("%d%d%d",&a,&b,&c); sum=a+b; if(sum>=c) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326889/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326889/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d", &a, &b, &c); if(a+b >= c) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326946/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326946/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> struct appij { int appi; int appj; }; struct appij arr[100005]; long long int n,m,k,ans=0; int row,col; int main() { scanf ("%lld %lld %lld",&n,&m,&k); col=k; row=(n/k)+1; int i,j,ct=0,t; int a[row][col],fini,finj; for (i=0;i<row;i++) { for (j=0;j<col;j++) { scanf ("%d",&a[i][j]); a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32699/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32699/source.c" target datalayout = "e-m:e-p270: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.appij = type { i32, i...
#include<stdio.h> int main(void) { int a,b,c,x; scanf("%d%d%d",&a,&b,&c); x = a+b; if(x>=c) printf("Yes\n"); else if(x<c) printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327031/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327031/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%d",&a,&b,&c); if(a+b>=c) printf("Yes"); else printf("No"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327075/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327075/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d", &a, &b, &c); if (a + b >= c) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327125/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327125/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100 #define SUCCESS 1 // 成功 #define FAILURE 0 // 失敗 #define INFTY 1 << 21 // 到達不可能を表す大きな値 int queue[N]; // キューの本体 int queue_head = 0; // データ先頭 int queue_num; // データ個数 int node_num, M[N + 1][N + 1]; int d[N]; // 距離で訪問状態(color)を管理する int enqueue(int enq_data) // キューにデータを追加する { if (q...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327176/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327176/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @queue_head = dso_local loc...
#include <stdio.h> #include <stdlib.h> #define WHITE 0 #define GRAY 1 #define BLACK 2 int n,time,head,tail; int *queue; int *dist; int *color; int **matrix; void enqueue(int); int dequeue(void); void bfs(void); int main(){ int i,j,u,k,v; scanf("%d",&n); queue = malloc(n * sizeof(int)); color = malloc(n * ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327233/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327233/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> void visit(int); int d(void); void e(int); int map[101][101]; int Q[101],n,head=0,tail=0,color[101],G[101]; int main() { int i,j,v,vv,m,u,k; scanf("%d",&n); for(i=0;i<n;i++){ color[i]=0; for(j=0;j<n;j++){ map[i][j]=0; } } for(i=0;i<n;i++){ scanf("%d%d",&v,&m); f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327291/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327291/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @head = dso_local local_unn...
#include<stdio.h> #define MAX 100 int n,M[MAX+1][MAX+1]; int d[MAX+1]; int Q[MAX+1]; int head = 1, tail; void enqueue(int x){ Q[tail] = x; if((tail +1) == MAX+1) tail = 0; else tail++; } int dequeue(){ int x; x = Q[head]; if((head + 1) == MAX+1) head = 0; else head++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327341/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327341/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @head = dso_local local_unn...
#include <stdio.h> void bfs(int); int deque(void); void enqueue(int); int front(void); int empty(void); #define N 100 #define INF 10000000 int n; int M[N][N]; int d[N]; int Q[N]; int head,tail; int main(){ int u; int k; int v; int i,j; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++){ M[i][...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327385/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327385/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 105 #define MAX 105 #define BLACK 2 #define GRAY 1 #define WHITE 0 #define NIL -1 int head, tail; int Q[N]; int color[N]; int discover[N]; int adj[N][N]; int n; void enqueue(int); int dequeue(); void bfs(int); int main() { //int n; int u, k, v; int i, j; int num; int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327428/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327428/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #define N 100 #define INF 1000000 void enq(int); int deq(void); void bfs(int); int que[INF],head=0,tail=0; int n,M[N][N],d[N]; int main(){ int u,k,v,i,j; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++){ M[i][j]=0; } } for(i=0;i<n;i++){ scanf("%d%d"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327479/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327479/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @head = dso_local local_unn...
#include <stdio.h> #define GRAY 0 #define WHITE 1 #define BLACK -1 typedef struct{ int color; int cnt; int next[10]; }Node; int d[101]; Node dfs[101]; int head,tail,que[101]; void enqueue(int x){ que[tail]=x; tail = (tail+1)%101; } int dequeue(void){ int x; x=que[head]; head = (head+1)%101; ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327529/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327529/source.c" target datalayout = "e-m:e-p270: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.Node = type { i32, ...
#include <stdio.h> #include <stdlib.h> int i,j,s[100],w,n,h,a,b,c,p[1000000],t; int main() { scanf("%d%d%d", &n, &h, &t); for(i=0; i<90; i++) { s[i]=h; } w=0; for(i=0; i<t; i++) { scanf("%d%d%d", &a, &b, &c); for(j=a-1; j<=b-1; j++) { if(s[j]>c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32758/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32758/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 map[101][101]; int d[101]; int queue[101]; int n; int main(){ int i, j; int u, o, a; scanf("%d", &n); for( i = 1; i <= n; i++ ){ d[i] = -1; for( j = 1; j <= n; j++ ){ map[i][j] = 0; } } for( i = 1; i <= n; i++ ){ scanf("%d", &u)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327622/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 G[101][101]; int d[101]; int n; int Que[1000]; int head=0, tail=0; void enqueue(int q){ Que[head]=q; head++; } int dequeue(){ tail++; return Que[tail-1]; } int size(){ return head-tail; } void bfs(int i){ int j; for(j=0;j<n;j++){ if(G[i][j]==1 && d[j]==-1){ d[j]=d[i]+1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327673/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327673/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @head = dso_local local_unn...
//Author is Sorowar Mahabub //Studies B. Sc in CSE //Int' Islamic University Chittagong (IIUC) //Cell: 01834-756433 //Email: sorowarmahabub1709vip@gmail.com #include<stdio.h> int isprime( int n ) { if(n<=1) return 0; for(int i=2; i*i<=n; i++) { if(n%i==0) return 0; } return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327774/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327774/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h> #include <math.h> int main(void) { int n, i, j, flag=0; scanf("%d", &n); for (i = n; i < 100200; i++) { for (j = 2; j <=sqrt(n); j++) { if (i % j == 0) { flag = 1; break; } } if (flag == 0) { printf("%d", i); return 0; } flag = 0; } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327817/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327817/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include <time.h> typedef long long ll; typedef long double ld; #define INF (1LL<<60) /*swap 交換*/ void swap(ll *a, ll *b){ll c;c=*b;*b=*a;*a=c;} /*2つのうち大きい数を返す*/ ll max2(ll a,ll b){return a>=b?a:b;} /*2つのうち小さい数を返す*/ ll min2(ll a,ll b){return a>=b?...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327860/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327860/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> int main(void){ int i,n,j,x,y,p[100000]; char str[10]; fgets(str,sizeof(str),stdin); x=atoi(str); n=-1; while(n<0){ y=(int)sqrt((double)x); for(i=2;i<=x;i++){ if(x%i==0&&x!=i){ break; } if(i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327903/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327903/source.c" target datalayout = "e-m:e-p270: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){ int x; scanf("%d", &x); int y = x; while(1){ int n = 2; int flg = 1; while(n*n < y){ if(y%n == 0){ flg = 0; break; } n++; } if(flg == 1){ break; } y++; } printf("%d\n", y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327961/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327961/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// Aizu 1020: Cleaning Robot // 2017.9.17 bal4u@uu #include <stdio.h> #include <string.h> double f[17][3][3]; int mv[4][2] = {{-1,0},{0,1},{1,0},{0,-1}}; int main() { int n, s, t, b, i, j, r, c, r2, c2; char t1[5], t2[5], t3[5]; while (scanf("%d", &n) && n) { scanf("%s%s%s", t1, t2, t3), s = *t1 - 'A', t = *t2...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328018/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328018/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @mv = dso_local local_unnam...
#include<stdio.h> int p[100010]={0}; int d[100010]={0}; int S[100010];//サイズ用配列 未実験 int Find(int a,int b){ int r,n; for(r=++a;p[r];r=p[r]); for(;n=p[a];a=n)p[a]=r; for(r=++b;p[r];r=p[r]); for(;n=p[b];b=n)p[b]=r; return a-b?1:0; } long long Union(int a,int b){ long long r=0; if(Find(a,b)){ for(++a;p[a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328083/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328083/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @p = dso_local local_unname...
//set many funcs template //Ver.20181228 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328126/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328126/source.c" target datalayout = "e-m:e-p270: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.sd = type { i64, i6...
#include <stdio.h> #include<stdlib.h> int main() { int n; scanf("%d",&n); int i; int arr[n]; for(i=0;i<n;i++)scanf("%d",&arr[i]); int br=0; for(i=0;i<n;i++){ br=br+arr[i]-1; if(br%2==0)printf("2\n"); else printf("1\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32817/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32817/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(){ int A,B; scanf("%d %d", &A, &B); if(A>=13){ printf("%d", B); }else if(6<=A && A<=12){ printf("%d", B/2); }else{ printf("%d", 0); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328270/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328270/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,cost; scanf("%d %d", &A,&B); if(A>=13 && A<=100) cost=B; else if(A<=12 && A>=6) cost=B/2; else if(A>=0 && A<=5) cost=0; printf("%d", cost); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328313/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328313/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX(X, Y) (((X) > (Y))? (X) : (Y)) #define MIN(X, Y) (((X) < (Y))? (X) : (Y)) int compare_int(const void *a, const void *b){ return *(long int*)b - *(long int*)a; // 大きい順 } int compare_int_small(const void *a, const void *b){ retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328357/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328357/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); long long int sum = 0; for(int i=0; i<n; i++) { long long int tmp ; scanf("%I64d", &tmp); sum += (tmp - 1); if (sum%2) puts("1"); else puts("2"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32840/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32840/source.c" target datalayout = "e-m:e-p270:32:32-p271: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){ // Your code here! int age, price; scanf("%d%d", &age, &price); if (age >= 13) { printf("%d", price); } else if (age <= 5) { printf("0"); } else { printf("%d", price / 2); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328443/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328443/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<=5) { printf("%d",0); } else if(A>=6&&A<=12) { printf("%d",B/2); } else { printf("%d",B); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328494/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328494/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compare(const void *a, const void *b) { return *(int *)a - *(int *)b; } void Mysort(void* arr, int len, long unsigned int size){ qsort(arr, len, size, compare); } int main(void){ int a,b; scanf("%d%d", &a, &b); if(a <= 5){ pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328537/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328537/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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_328595/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328595/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x; scanf("%d",&a); scanf("%d",&b); if(a<=5){ x=0; } else if(a>=6 && a<=12){ x=b/2; } else{ x=b; } printf("%d\n", x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328638/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328638/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int A,B; scanf("%d %d",&A,&B); if(A <= 5){ printf("0"); }else if(A > 5 && A < 13){ printf("%d",B/2); }else{ printf("%d",B); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328681/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328681/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* AOJ #3002 title:Factrization @kankichi573 2017/12/14 WA 35/37 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define max(x,y) (((x)>(y))?(x):(y)) char S[1000]; int k[6]; int jisuu; int insuu[6]; char delim[3]="+-"; int find_sign(char s[]) { char *p; int ret; for(p=s;*p;p++) if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328731/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328731/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @delim = dso_local local_un...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int n,i; scanf("%d",&n); if(n==1) printf("I hate it"); else{ for(i=0;i<n-1;i++) { if(i%2==0) { printf("I hate that "); } if(i%2!=0) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32879/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32879/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> char s[200005][16]; int asc(const void* a, const void* b) { return strcmp(s[*(int*)a], s[*(int*)b]); } int main() { int n; scanf("%d", &n); int i; for (i = 0; i < n; i++) scanf("%s", s[i]); int c[200005]; for (i = 0; i < n; i++) c[i] = i; qsort(c, n, s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328832/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328832/source.c" target datalayout = "e-m:e-p270: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 [2000...
#include<stdio.h> #include<stdlib.h> #include<string.h> #define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};} //pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define SWAP(type, x, y) do { type tmp =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328890/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328890/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b[100001]; int main() { int i,j,n,max=0,c; scanf("%d",&n); int a[n]; for(i=0; i<n; i++) { scanf("%d",&a[i]); if(a[i] != 0) { ++b[a[i]-1]; ++b[a[i]]; ++b[a[i]+1]; } else { ++b[a[i]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328933/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328933/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(void) { int n; int cnt = 0; int i; char s[11], input[11], copy[21]; scanf("%s%d", s, &n); for (i = 0; i < n; i++){ scanf("%s", input); sprintf(copy, "%s%s", input, input); if (strstr(copy, s) != NULL){ cnt++; } } printf("%d\n",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328984/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328984/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Word[20],Ring[20],temp[20]; int n,i,cnt = 0; scanf("%s" ,Word); scanf("%d" ,&n); for( i = 0 ; i < n ; i++ ){ scanf("%s" ,Ring); strcpy( temp , Ring ); strcat( Ring , temp ); if( strstr( Ring , Word ) ) cnt++; } printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329055/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329055/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, t, S = 0, A = 0, C = 0, D = 0; for (;;) { scanf("%d %d %d\n", &a, &b, &c); if (a < b) {t = a; a = b; b = t;} if (a < c) {t = a; a = c; c = t;} if (a >= b + c) break; S++; if (a * a < b * b + c * c) A++; else if (a * a == b * b + c * c) C++; else...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329112/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329112/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #include <time.h> #define _CRT_SECURE_NO_WARNINGS #define TLong long long #define TBMod 1000000007 int main(int argc, char const *argv[]) { int n,point[200007],pat[200007] = { 0 }; int sum = 0,i = 1; scanf("%d",&n); for (i = 1; (i <= n &...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329156/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329156/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,k1=0,k2=0,m=1; char s[1000002]; scanf("%s",s); for(i=0;s[i]!='\0';i++) if(s[i]=='=') s[i]='0'; for(i=0;s[i]!='\0';i++) if(s[i]=='^') break; for(j=i-1;j>=0;j--,m++) k1+=m*(s[j]-'0'); m=1; for(j=i+1;s[j]!='\0';j++,m++) k2...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3292/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3292/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include<stdio.h> int main() { int n,i; scanf("%d",&n); for(i=1; i<=n; i+=2) { printf("I hate "); if(i!=n) { if(i!=(n-1)) printf("that "); } if(i==(n-1) && n%2==0) { printf("that "); } if(i!=n) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32925/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32925/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #define maxLL 1000000000000000000 int main(){ int angka; long long int a[100000]; long long int hasil = 1; scanf("%d", &angka); for(int i=0; i<angka; i++){ scanf("%lld", &a[i]); if(a[i] == 0){ printf("0"); return 0; } } for(int i=0; i<angka; i++){ if(a[i] > maxLL/hasil){ pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329293/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329293/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 1000000000000000000 #define N 100000 int main(void) { int n, i = 0; long long tmp[N+1], r = 1; scanf("%d", &n); while(i < n) { scanf("%lld", &tmp[i]); if(tmp[i] == 0) { printf("0"); return 0; } i++; } tmp[n] = -1; i = 0; while(tmp[i]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329336/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329336/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdbool.h> #define clr(ar) memset(ar, 0, sizeof(ar)) #define read() freopen("lol.txt", "r", stdin) int main(){ int i, j, c, d, n, m, k, r, x, y, res; while (scanf("%d %d %d %d %d", &c, &d, &n, &m, &k) != EOF){ r = (n * m) - k; if (r <= 0) res =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32938/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32938/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,k,i,j; scanf("%d %d",&n,&k); int m=k*n; if(m>((n*(n-1))/2)) printf("-1"); else { printf("%d\n",m); for(i=1;i<=n;++i) { int ct=0,b=i+1; while(ct!=k) { if(b>n) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32943/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32943/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> int main () { int N; scanf("%d", &N); unsigned long long *A = malloc((1 + N) * sizeof(unsigned long long)); unsigned long long ans = 1; for (int i = 1; i <= N; i++) { scanf("%lld", &A[i]); if (A[i] == 0) { printf("0\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329488/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329488/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h> int subsum[101][101]; int main(void) { int n, x, y, x1, y1, x2, y2; int max = INT_MIN; /* 最大値を覚えておく変数 */ /* 配列データの初期化 */ memset(subsum,0,sizeof(subsum)); /* 入力データの読み込み */ scanf("%d", &n); for(y=1; y<=n; y++){ for(x=1; x<=n; x++){ int m; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329530/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329530/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @subsum = dso_local local_u...
#include <stdio.h> int main(void) { long long int ans = 0, max = 0; int n; scanf("%d", &n); long long int h[n]; for (int i = 0; i < n; i++) { scanf("%lld", &h[i]); if (i != 0) if (h[i] <= h[i - 1]) max++; else { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329581/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329581/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n; scanf("%d",&n); long long int h[n]; int i; long long int ctr=0 , x; long long int a[n]; for(i=0;i<n;i++) scanf("%lld" , &h[i]); for(i=0;i<n;i++) { if (h[i] >= h[i+1]) ctr++; if(h[i] < h[i+1]) ctr=0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329624/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329624/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,h[100000],i,r=0,q=0; int main(){ scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&h[i]); for(i=0;i<n-1;i++){ q=h[i]>=h[i+1]?q+1:0; if(r<q)r=q; } printf("%d",r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329668/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329668/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @r = dso_local local_unname...