Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include <time.h>
typedef long long llint;
typedef long double ldouble;
/*swap 交換*/
void swap(llint *a, llint *b){llint c;c=*b;*b=*a;*a=c;}
/*2つのうち大きい数を返す*/
llint max2(llint a,llint b){return a>=b?a:b;}
/*2つのうち小さい数を返す*/
llint min2(llint a,llint b)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361764/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361764/source.c"
target datalayout = "e-m:e-p270: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.frequent = type { i... |
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#include <stdbool.h>
#define inf (INT_MAX-1)
#define INF 9223372036854775807;
#define PI 3.14159265358979323846;
#define EPS 1e-10
#define sq(n) ((n)*(n))
#define rep(i,n) for(i=0;i<n;i++)
#d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361807/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361807/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unna... |
#include <stdio.h>
// I/O
int get_uint() {
int n = 0;
int c = getchar_unlocked();
if(c < 48 || 57 < c) return c;
while(47 < c && c < 58) n = 10 * n + (c & 0xf), c = getchar_unlocked();
return n;
}
int get_str(char *str) {
int c;
while((c = getchar_unlocked()) > 32) *str++ = (char)c;
*s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361850/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361850/source.c"
target datalayout = "e-m:e-p270: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>
#include <stdlib.h>
#define SIZE 2000000
int myatoi(const char* p)
{
int n;
while (*p!='\n') {
n = n*10+*p-'0';
p++;
}
return n;
}
int main() {
int A[SIZE];
int H=0;
int i, l, largest, tmp;
char com[21];
do {
fgets(com, 20, stdin);
if (com[0] == 'i') {
A[++H... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361894/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361894/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
#include<limits.h>
#define MAX 2000001
int size=0;
int A[MAX];
void MaxHeapInsert(int);
void HeapIncreaseKey(int ,int);
void MaxHeapify(int);
int HeapExtractMax();
int Parent(int);
int Left(int);
int Right(int);
int main(){
int n,i,tmp,x;
char com[20];
while(1){
scanf("%s",com);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@size = dso_local local_unn... |
#include <stdio.h>
int i, H, A[2000000];
int left(int i){
return 2*i;
}
int right(int i){
return 2*i+1;
}
void maxHeapify(int *A, int i){
int largest, tmp;
int l = left(i), r = right(i);
if(l <= H && A[l] > A[i]){
largest = l;
}
else{
largest = i;
}
if(r <= H && A[r] > A[largest]){
larg... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362000/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362000/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@H = dso_local local_unname... |
#include <stdio.h>
#include <limits.h>
int A[2000001];
int N = 0;
void upheap(int k)
{
int v = A[k];
A[0] = INT_MAX;
while(v > A[k / 2]){
A[k] = A[k / 2];
k = k / 2;
}
A[k] = v;
}
void insert(int v)
{
A[++N] = v;
upheap(N);
}
void downheap(int k)
{
int j, v;
v =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362051/source.c"
target datalayout = "e-m:e-p270: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 local_unname... |
#include<stdio.h>
#define MAX 2000000
#define INF (1<<30)
int h=0;
void maxHeapify(int *Heap,int i){
int l=2*i;
int r=2*i+1;
int largest;
int tmp;
if(l<=h && Heap[l]>Heap[i]) largest=l;
else largest=i;
if(r<=h && Heap[r]>Heap[largest]) largest = r;
if(largest!=i){
tmp=Heap[i];
Heap[i]=Heap[large... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@h = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#define N 10000
int H=0,A[2000000001];
void maxHeapify(int k){
int v,l,r,z;
l=k*2;
r=k*2+1;
z=k;
if(l<=H&&A[l]>A[k]) z=l;
else z=k;
if(r<=H&&A[r]>A[z]) z=r;
if(z!=k){
v=A[k];
A[k]=A[z];
A[z]=v;
maxHeapify(z);
}
}
int extract(){
int m;
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@H = dso_local local_unname... |
#include <stdio.h>
#define MAX 2000000
#define INF (1<<30)
int H, A[MAX+1];
void maxHeapify (int i) {
int l, r, largest, tmp;
l = 2 * i;
r = 2 * i + 1;
// select the node which has the maximum value
if (l <= H && A[l] > A[i]) largest = l;
else largest = i;
if (r <= H && A[r] > A[largest]) largest = r;
if (l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362239/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@H = dso_local local_unname... |
#include<stdio.h>
#include<math.h>
int main()
{
int n;
scanf("%d",&n);
if(n%2==1){
printf("0");
}
else{
n = n/2;
int m = pow(2,n);
printf("%d",m);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36229/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 int n,i,j,k,l;
scanf("%ld",&n);
i=(n*3);
if((i%6)==0)
{
j=pow(2,i/6);
printf("%ld",j);
}
else
printf("%ld",0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36234/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36234/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define N 2000000
typedef long int lint;
int size;
void maxHeap(lint H[], int i, int n){
lint left,right;
lint largeVal;
lint temp;
left = i*2;
right = i*2+1;
if(left <= n && H[left] > H[i]){
largeVal = left;
}
else{
largeVal = i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362390/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362390/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@size = dso_local local_unn... |
/* ALDS1_9_C: PriorityQueue */
/* 20181129 AOJ */
#define _CRT_SECURE_NO_WARNINGS
#define N 2000001
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void insert(int *priorityQueue, int key);
int extract(int *priorityQueue);
void maxHeapify(int *priorityQueue, int i);
void swap(int *x, int * y);
int id;
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362433/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362433/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@id = dso_local local_unnam... |
#include<stdio.h>
#include<string.h>
#define MAX 2000000
#define INFTY 1000000000
int H,A[MAX+1];
void maxHeapify(int i){
int l = 2 * i;
int r = 2 * i +1;
int largest,t;
// 左の子、自分、右の子で値が最大のノードを選ぶ
if(l<=H && A[l]>A[i]) largest=l;
else largest=i;
if(r<=H && A[r]>A[largest]) largest=r;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@H = dso_local local_unname... |
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<memory.h>
#include<stdlib.h>
int i, l, flag[15];
unsigned long long sum, sum1;
char s[15];
void find(int k, int index)
{
int j;
unsigned long long k1 = 1, p = 0;
if (k > i)
{
for (j = l - 1; j >= 0; j--)
{
p = p + k1*(s[j] - 48);
k1 = k1 * 10;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362534/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362534/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@i = dso_local local_unname... |
#include <stdio.h>
int main(void){
int a,b;
for(int i=0;i<7;i++){
scanf("%d %d",&a,&b);
printf("%d\n",a-b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362578/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362578/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
for(i=0;i<7;i++){
scanf("%d %d",&a,&b);
printf("%d\n",a-b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362620/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362620/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ma,mi;
for(i=0;i<7;i++)
{
scanf("%d %d",&ma,&mi);
printf("%d\n",ma-mi);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362664/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i;
for(i = 0;i < 7;i++){
scanf("%d%d", &a, &b);
printf("%d\n", a - b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362707/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,x;
for(i=0;i<7;i++){
scanf("%d %d",&a,&b);
x=a-b;
printf("%d\n",x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362750/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[ 1000003 ], pn[ 2000002 ];
int main( void ) {
char *p;
int i, n, t;
for ( ; scanf( "%d %*d %s", &n, s + 2 ), n; printf( "%d\n", t ) ) {
for ( i = 0 ; i < n * 2 + 1; i++ )
sprintf( pn + i, i & 1 ? "O" : "I" );
t = 0;
for ( p = s; ( p = strstr( p + 2, pn ) ) !... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362815/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,g;
scanf("%d",&r);
scanf("%d",&g);
printf("%d",2*g-r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362909/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362909/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R,G;
scanf("%d %d",&R,&G);
int r = 2*G - R;
printf("%d",r);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362952/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R, G;
scanf("%d %d", &R, &G);
int res = 2 * G - R;
printf("%d\n", res);
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,&c);
b=c*2-a;
printf("%d",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
printf("%d",b*2-a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363081/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363081/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R,G;
scanf("%d %d",&R,&G);
int B=G*2-R;
printf("%d",B);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363124/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R,G,paform;
scanf("%d",&R);
scanf("%d",&G);
paform=G-R;
paform+=G;
printf("%d\n",paform);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int sum = 0;
int digit;
while (scanf("%*[^0-9]%d", &digit) == 1) {
sum += digit;
}
printf("%d\n", sum);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363218/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363218/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <math.h>
long long d[300020];
bool visited[300020];
typedef struct{
int to, head, next;
long long cost;
} edge;
edge tree[300020];
void dfs(int v, int p, long long cost){
d[v] = cost;
visited[v] = true;
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363290/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363290/source.c"
target datalayout = "e-m:e-p270: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.edge = type { i32, ... |
#include <stdio.h>
int main(void) {
int N, i;
int HorieYui = 0;
int HayamiSaori = 1;
if (scanf("%d", &N) != 1) return 1;
for (i = 0; i < N; i++) {
char YusaKouzi[12];
if(scanf("%s", YusaKouzi) != 1) return 1;
if (YusaKouzi[0] == 'A') HorieYui++; else HorieYui--;
if (HorieYui < 0) HayamiSaori = 0;
}
puts... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363348/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363348/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define POS(i,j) ((i)*(n/2)+(j))
void run(void){
srand((unsigned)time(NULL));
int n,k;
scanf("%d%d",&n,&k);
int *card=(int *)calloc(k*(n/2),sizeof(int));
int i,j;
for(i=0;i<k*(n/2);i++) scanf("%d",card+i);
int *ans=(int *)calloc(n,sizeof(int));
whi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363399/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363399/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdbool.h>
int Mayor(int A, int B){
return A>B? A: B;
};
bool Equal(int A, int B){
if(A == 5)
return A == B;
return false;
};
int main(){
int A, B, C, Aux;
scanf("%d%d%d", &A, &B, &C);
Aux = Mayor(C, Mayor(A, B));
if(Aux == 7 && (Equal(A, B) || Equal(B, C) || Equal (C,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363449/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363449/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3];
for(int z=0;z<3;z++){
scanf("%d", &a[z]);
}
int co5=0;
int c07=0;
for(int x=0;x<3;x++){
if(a[x]==5){
co5++;
}
else if(a[x]==7){
c07++;
}
}
if(co5==2 && c07==1){
printf("YES\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363492/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363492/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
int main(){
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if((a==7 && b ==5 && c==5) || (a==5 && b== 7 && c==5) || (a==5 && b==5 && c== 7))
printf("YES\n");
else
printf("NO\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363535/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363535/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
作成日:2020-03-15
*/
#include <stdio.h>
int main()
{
int a, b, c;
scanf( "%d %d %d", &a, &b, &c );
if( a == 5 && b == 5 && c ==7)
printf( "YES\n" );
else if( a == 5 && b == 7 && c == 5 )
printf( "YES\n" );
else if( a == 7 && b == 5 && c == 5 )
printf( "YES\n" );
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363579/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363579/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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==5&&b==5&&c==7 ||a==7&&b==5&&c==5 ||a==5&&b==7&&c==5)
printf("YES");
else
printf("NO");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363621/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363621/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>1&&b>1&&c>1&&a<10&&b<10&&c<10)
{
if((a==5&&b==5&&c==7)||(a==7&&b==5&&c==5||(a==5&&b==7&&c==5)))
{
printf("YES");
}
else
printf("NO");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363665/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363665/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3],N5=0,N7=0;
int i=0;
for(i=0;i<3;i++) {
scanf("%d",&A[i]);
if(A[i]==5){
N5++;
}
else if (A[i]==7) {
N7++;
}
}
if(N5==2 && N7==1) {
printf("YES\n");
}
else {
printf("NO\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363715/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//A - 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
#include<stdio.h>
int main(int argc, char const *argv[]) {
int a,b,c;
int flag5=2;
int flag7=1;
scanf("%d %d %d",&a,&b,&c);
if(a==5){
flag5 = flag5 -1;
}else if(a==7){
flag7 = flag7 - 1;
}
if(b==5){
flag5 = flag5 -1;
}else if(b==7){
flag7 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363759/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3],i,j;
scanf("%d %d %d",&a[0],&a[1],&a[2]);
if(a[0]+a[1]+a[2]!=17){
printf("NO\n");
}else{
for(i=0;i<3;i++){
if(a[i]==5){
for(j=0;j<3;j++){
if(a[j]==7){
printf("YES\n");
return 0;
}
}
}
}
printf("NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363801/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3];
int i, count5 = 0, count7 = 0;
scanf("%d%d%d", &n[0], &n[1], &n[2]);
for(i = 0; i < 3; i++)
{
if(n[i] == 5) count5++;
else if (n[i] == 7) count7++;
}
if (count5 == 2 && count7 == 1) printf("YES\n");
else printf("NO\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363874/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363874/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <limits.h>
#define inf (INT_MAX-1)
#define INF 9223372036854775807
#define sq(n) ((n)*(n))
#define rep(i,n) for(i=0;i<n;i++)
#define rev(i,n) for(i=n-1;i>=0;i--)
#define sort(a,n) qsort(a,n,sizeof(TYPE),cmp)
#defin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363917/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363917/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,e=0,d=0;
scanf("%d%d%d",&a,&b,&c);
if(a==5)
d++;
else if(a==7)
e++;
if(b==5)
d++;
else if(b==7)
e++;
if(c==5)
d++;
else if(c==7)
e++;
if(d==2&&e==1)
printf("YES\n");
e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void solve (){
int x , y;
scanf("%d %d",&x,&y);
int res=x+y;
if(res%2==0){
if(x>y)
printf("%d %d\n",res/2 , 0);
else
printf("%d %d\n",0,res/2);
}
else
printf("-1 -1\n");
}
int main()
{
int t ;
scanf("%d",&t);
while(t--)
solve();
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36401/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36401/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
}
int main(){
int n;
scanf("%d",&n);
int a[n];
int b[n];
long long int a_sum = 0;
long long int b_sum = 0;
int i = 0;
for(i=0;i<n;i++){
scanf("%d",&a[i]);
a_sum += (long long... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364060/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364060/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 2157: Dial Lock
// 2017.11.9 bal4u@uu
#include <stdio.h>
#include <string.h>
#define HASHSIZ 20011
long long hash[HASHSIZ+2], *hashend = hash+HASHSIZ;
int insert(long long n)
{
long long *p = hash + n % HASHSIZ;
while (*p) {
if (*p == n) return 0;
if (++p == hashend) p = hash;
}
*p = n;
return 1;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364103/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364103/source.c"
target datalayout = "e-m:e-p270: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.Q = type { i64, i32... |
#include <stdio.h>
int main()
{
int n, k;
char s[11];
scanf("%d", &n);
scanf("%s", &s);
scanf("%d", &k);
int i;
char c = s[k - 1];
for (i = 0; i < n; i++) {
if (s[i] != c)
s[i] = '*';
}
printf("%s", s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364169/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364169/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int N, K;
char S[10];
scanf("%d%s%d", &N, S, &K);
for(int i = 0; i < N; i++){
if(S[i] != S[K - 1]) S[i] = '*';
}
printf("%s", S);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364211/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364211/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K;
scanf("%d",&N);
char S[N];
scanf("%s",S);
scanf("%d",&K);
for(int i=0;i<N;i++){
if(S[i]!=S[K-1]){
S[i]='*';
}
printf("%c",S[i]);
}
printf("\n");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364255/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364255/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <string.h>
#include <math.h>
void print_int(int n)
{
printf("%d\n",n);
}
void swap(int * a, int * b)
{
int t = *a;
*a = *b;
*b = t;
}
void sort(int a[], int n)
{
for(int i = 1; i < n; i++)
{
int j = i-1;
while(j >= 0 && a[j+1] > a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364299/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364299/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int N,len;
char S[1000001];
int mybsearch(int l,int h);
bool check(int k);
int main(void){
scanf("%d%*c",&N);
scanf("%s",S);
len=strlen(S);
printf("%d\n",mybsearch(0,N/3));
return 0;
}
int mybsearch(int l,int h){
int mid;
if(l==h) return l;
el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364341/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364341/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c[200001];
scanf("%d", &N);
scanf("%s", c);
int i, j, count = 0;
for (i = 0, j = N - 1; i < j; i++) {
if (c[i] == 'R') continue;
for (; j > i && c[j] == 'W'; j--);
if (i == j) break;
else {
c[i] = 'R';
c[j] = 'W';
count++;
}
}
printf("%d\n", coun... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364385/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364385/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main (void) {
int N, w_c = -1, r_c = -1, count = 0, j = 0;
scanf("%d\n", &N);
char t;
int w[N], r[N];
for (int i = 0; i < N; i++) {
scanf("%c", &t);
if (t == 'R') {
r_c++;
r[r_c] = i;
} else if (t == 'W') {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364428/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364428/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i;
char c[200005];
scanf("%s", c);
int cntr = 0;
for (i = 0; i < n; i++)
if (c[i] == 'R')
cntr++;
int l, r;
int ans = 0;
l = 0;
r = n - 1;
while (l < cntr && r >= cntr)
{
if (c[l] == 'R')
{
l++;
continue;
}
if (c[r] == 'W')
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364471/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364471/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char op;
while(1){
scanf("%d %c %d",&a,&op,&b);
if(op=='+'){
c=a+b;
printf("%d\n",c);
}
if(op=='-'){
c=a-b;
printf("%d\n",c);
}
if(op=='*'){
c=a*b;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364514/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364514/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int op;
for (;;){
scanf("%d %c %d",&a,&op,&b);
if(op=='?'){
break;
}else if(op=='+'){
printf("%d\n",a+b);
}else if(op=='-'){
printf("%d\n",a-b);
}else if(op=='*'){
printf("%d\n",a*... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364558/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364558/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char op;
while(1){
scanf("%d %c %d", &a, &op, &b);
if(op == '?'){
break;
}
if(op == '+'){
printf("%d\n", a + b);
}
else if(op == '-'){
printf("%d\n", a - b);
}
else if(op == '*'){
printf("%d\n", a * b);
}
else if(op == '/'){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364608/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364608/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char op;
while(1){
scanf("%d %c %d", &a, &op, &b);
if(op == '?') break;
switch(op){
case '+': printf("%d\n", a + b); break;
case '-': printf("%d\n", a - b); break;
case '*': printf("%d\n", a ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364651/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364651/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char op;
while(1){
scanf("%d %c %d",&a,&op,&b);
if(op=='?')
break;
else if(op=='/')
printf("%d\n",a/b);
else if(op=='*')
printf("%d\n",a*b);
else if(op=='-')
printf("%d\n",a-b);
else if(op=='+')
printf("%d\n",a+b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364709/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364709/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define P 3.141592653589
#include<stdio.h>
int main (void){
int x,y,z;
char op;
while(1){
scanf("%d %c %d",&x,&op,&y);
switch(op){
case '+':
z=x+y;
break;
case '-':
z=x-y;
break;
case '*':
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364752/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364752/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char op;
while("^皿^うえええええwww"){
scanf("%d %c %d", &a, &op, &b);
if(op == '?') break;
else if(op == '+') c = a+b;
else if(op == '-') c = a-b;
else if(op == '*') c = a*b;
else if(op == '/') c = a/b;
printf("%d\n", c);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364796/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364796/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.1 = private unnamed_a... |
#include <stdio.h>
int main(void){
char s[100];
scanf("%s",s);
if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I'){printf("Yes");}
else{printf("No");}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364846/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364846/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void) {
char s[11] = { 0 };
int len;
scanf("%s", &s);
len = strlen(s);
if (len >= 4) {
if ((s[0] == 'Y') && (s[1] == 'A') && (s[2] == 'K') && (s[3] == 'I')) {
printf("Yes\n");
return 0;
}
}
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364897/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364897/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,k,l,n,m,t;
scanf("%ld",&n);
if(n>=0)
printf("%ld\n",n);
else
{
k=n/10;
m=n%10;
l=n/100;
l=l*10+m;
if(k>l)
printf("%ld\n",k);
else
printf("%ld\n",l);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36494/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36494/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int cnt;
char s[200010];
char t[200010];
fgets(s, sizeof(s), stdin);
fgets(t,sizeof(t),stdin);
int len = strlen(s);
cnt=0;
for(int i = 0; i < len; i++){
if(s[i]!=t[i]){
s[i]=t[i];
cnt++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_364983/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_364983/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main(){
//char型の配列を定義する
//問題文の制約より、文字列の最大の長さは200000なので、
//それが入れば良い
char s[200010], t[2000010];
//s,tに入力を代入する
scanf("%s",s);
scanf("%s",t);
//異なる回数を格納する変数を定義する
//ループ内で数を数えるときは、その格納先は先に定義しておく
int ans = 0;
//sのi文字目とtのi文字目が異なる回数を調べる
//同様の処理を繰り返す... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365025/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365025/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000000],t[1000000];
scanf("%s%s",s,t);
char *ptrs,*ptrt;
ptrs = s;
ptrt = t;
int cnt = 0;
while(*ptrs != '\0')
{
if(*ptrs!=*ptrt)
{
cnt++;
}
ptrs++;
ptrt++;
}
printf("%d\n",cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365076/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365076/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans;
char s[2*10*10*10*10*10 + 1], t[2*10*10*10*10*10 + 1];
scanf("%s", s);
scanf("%s", t);
ans = 0;
while (s[i]) {
if (s[i] != t[i])
ans++;
i++;
}
printf("%d", ans);
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365126/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365126/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000000];
char t[1000000];
scanf("%s", s);
scanf("%s", t);
int i;
int ans=0;
for(i=0; s[i]!=0; i++){
if(s[i]!=t[i]){
ans++;
}
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365191/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365191/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define ll long long
#define INF 1<<31-1
#define LNF 9223372036854775807
#define PI 3.14159265358979
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 1000000007
//#define MOD 998244353
#define N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365241/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365241/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main ()
{
char *S = malloc(((2 * 100000) + 1) * sizeof(char));
char *T = malloc(((2 * 100000) + 1) * sizeof(char));
int len;
int ans;
scanf("%s", S);
scanf("%s", T);
len = strlen(S);
ans = 0;
for (int i = 0; i < len; i++)
{
if(S[i] != T[i])
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365292/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365292/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 order[100001],cnt[100001];
int n;
void f(int x,int i){
int j;
// if(n+7<=x)return;
if(cnt[x]>i){
cnt[x]=i;
if(order[x]==0)
for(j=1;j<=6;j++)
f(x+j,i+1);
else f(x+order[x],i);
}
}
int main(){
int i;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&order[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365335/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365335/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@cnt = dso_local local_unna... |
#include <stdio.h>
int main(void){
int a[20],b[20],i,t,n,nn,y;
a[0] = 1;
for(t = 1;t<20;t++){
a[t] = 0;
}
scanf("%d",&n);
for(t=1;t<n+1;t++){
for(i=0;i<20;i++){
b[i] = 0;
}
for(i=0;i<20;i++){
b[i] = a[i]*t;
}
for(i=0;i<20;i++){
y = b[i]/10;
b[i+1] += y;
b[i] -= y*10;
}
for(i=0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365386/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365386/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
long long factorial(long long n)
{
if(n>0)
{
return n * factorial(n - 1);
}
else
{
return 1;
}
}
int main(void)
{
long long n;
scanf("%lld",&n);
printf("%lld\n",factorial(n));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365436/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365436/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&t);
if(t>=0)
printf("%d",t);
else{
int n1=t%10;
t/=10;
int n2=t%10;
t/=10;
if(n2>n1)
n1=n2;
t=t*10+n1;
printf("%d",t);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36548/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int a[15];
int main()
{
int n,i,j,m,ans,flag1,flag2;
while(scanf("%d",&n)==1)
{
if(n>=0) printf("%d\n",n);
else
{
m=-n;ans=0;
memset(a,0,sizeof(a));
for(i=0;m!=0;i++) { a[i]=m%10; m/=10;}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36553/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 func(ll);
ll memo[21];
int main(void){
ll x;
scanf("%lld",&x);
printf("%lld\n",func(x));
return 0;
}
ll func(ll n){
if(n==0)return 1;
if(memo[n]!=0)return memo[n];
return n * func(n-1);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365595/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365595/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n;
long long ans;
int i;
scanf("%d",&n);
ans=n;
for(i=n-1;i>0;i--)
ans=ans*i;
printf("%lld\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365645/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365645/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num,i;
long long ans=1;
scanf("%d" ,&num);
for( i = 1 ; i <= num ; i++ ) ans *= i;
printf("%lld\n" ,ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365702/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365702/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
long
fanc (long n, long buf)
{
if (n != 1)
buf = fanc (n - 1, buf * n);
return buf;
}
int
main (void)
{
long n;
scanf ("%ld", &n);
printf ("%ld\n", fanc (n, 1));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365746/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365746/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
typedef unsigned long long ull;
typedef long long ll;
int main(int argc, char **argv)
{
int n;
scanf("%d", &n);
char s[n+1];
scanf("%s", s);
int i;
for (i = 0; i < n+1 && s[i] != '\0' && s[i] != EOF && s[i] != '\n'; i++)
{
if (s[i] == 'o')
{
int j = i+1;
while... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36579/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36579/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,i;
char s[102];
scanf("%d", &n);
scanf("%s", &s);
if(n%2 != 0){
printf("No");
return 0;
}
for(i = 0; i < n/2; i++){
if(s[i] != s[n/2 + i]){
printf("No");
return 0;
}
}
printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365832/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365832/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n,i;
scanf("%d",&n);
char s[n+1];
scanf("%s",s);
if(n%2!=0){
printf("No");
return 0;
}
for(i=0;i<n/2;i++){
if(s[i]!=s[n/2+i]){
printf("No");
return 0;
}
}
printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365876/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365876/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
int n,i;
scanf("%d\n",&n);
if(n%2==1){
printf("No");
return 0;
}
char str1[n/2];
char str2[n/2];
for(i=0;i<n/2;i++){
scanf("%c",&str1[i]);
}
for(i=0;i<n/2;i++){
scanf("%c",&str2[i]);
}
if(strncmp(str1,str2,n/2)==0){
printf("Yes");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365926/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 101
int main() {
char c[N];
int num,i,j;
scanf("%d",&num);
scanf("%s", &c);
if(num&1) {
printf("No");
return 0;
}
j=num/2;
for(i=0;i<num/2;i++) {
if(c[i]!=c[j]) {
printf("No");
return 0;
}
j++;
}
printf("Yes");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_365977/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_365977/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(n%2){
printf("No");
return 0;
}
char s[n+1];
scanf("%s",s);
for(int i=0;i<n/2;i++){
if(s[i]!=s[i+n/2]){
printf("No");
return 0;
}
}
printf("Yes");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366019/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366019/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{ int n,i;
scanf("%d",&n);
char name[n];
scanf("%s", name);
int count=0;
if(n%2==0)
{
for(i=0; i<n/2;i++){
if(name[i]!=name[n/2+i]){
count++;
}
}
if(count==0)
printf("Yes");
else
printf("No");
}
e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366062/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366062/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//Twitter@KonoLv1 2020年春からエンジニア見習いデビュー!
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
int main(void){
int i,j; // ループ文に使用
int x,y,z;
int count1,count2,count; // カウント用に使用
int flg,mode;
i = j = x = y = z = count1 = count2 = count = flg = mode = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366112/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366112/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans=0;
scanf("%d",&n);
char s[n];
scanf("%s",s);
if(n%2==1) printf("No");
else{
for(int i=0;i<n/2;i++){
if(s[i]!=s[i+(n/2)]){ans=1; break;}
}
if(ans==1)printf("No");
else printf("Yes");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366156/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366156/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,b,y,i,j,count=0;
scanf("%d %d %d %d",&x,&y,&a,&b);
for(i=a;i<=x;i++)
for(j=b;j<=y;j++)
if(i>j) count++;
printf("%d\n",count);
for(i=a;i<=x;i++)
for(j=b;j<=y;j++)
if(i>j)printf("%d %d\n",i,j);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3662/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3662/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include <time.h>
int main(void){
long n,i,a=1;
scanf("%ld",&n);
char s[100000];
scanf("%s",s);
// printf("%s",s);
for(i=1;i<n;i++){
if(s[i]!=s[i-1]) a++;
}
printf("%ld\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366257/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366257/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[105], b[105], ans;
int cmp(const void *a, const void *b) { return *(int *)a - *(int *)b; }
int main()
{
int f, i, j, n;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &a[i]);
b[i] = 1;
}
qsort(a + 1, n, sizeof(a[1]), cmp);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36630/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36630/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 N 100000
int main() {
static char s[N + 1];
int n, i, j, k;
scanf("%d%s", &n, s);
k = 0;
for (i = 0; i < n; ) {
j = i + 1;
while (j < n && s[j] == s[i])
j++;
k++;
i = j;
}
printf("%d\n", k);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.s = internal global [... |
#include <stdio.h>
int main() {
int n, i, cnt = 0;
char tmp = '0';
scanf("%d", &n);
char s[100000];
scanf("%s", s, 100000);
for (i = 0; i < n; i++) {
if (s[i] != tmp) {
cnt++;
tmp = s[i];
}
}
printf("%d\n", cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366400/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366400/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char S[100005];
scanf("%d",&N);
scanf("%s",S);
int i;
int ans=1;
for(i=1;i<N;i++){
if(S[i]!=S[i-1]){
ans++;
}
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366444/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366444/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s;
scanf("%d",&s);
int a[200];
a[0] = s;
for (int i = 1; i <= 200; i++)
{
if (a[i-1]%2==0)
{
a[i] = a[i-1]/2;
}else
{
a[i] = a[i-1]*3+1;
}
if (i%100==0)
{
for (int j = i-100; j < i-1; j++)
{
for (int k = j+1; k <= j+100; k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366488/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366488/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s,i,k;
int *a;
scanf("%d",&s);
a=(int*)malloc(sizeof(int)*1024);
a[0]=s;
for(i=1;;i++){
a[i]=(a[i-1]%2==0)?a[i-1]/2:a[i-1]*3+1;
for(k=0;k<i;k++){
if(a[i]==a[k]){
printf("%d\n",i+1);
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366574/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366574/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int s;
scanf("%d",&s);
int a[1000000];
a[1] = s;
int i = 2;
while(1){
if(a[i-1]%2 != 0)a[i] = 3*a[i-1]+1;
else a[i] = a[i-1]/2;
int j = 1;
for(j=1;j<i;j++){
if(a[i] == a[j]){
printf("%d",i);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366617/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366617/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.