Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <stdlib.h>
#define SCANINT(a) sign=0; \
if (*++p=='-') {sign=1;p++;}\
for (a=0; *p>' '; a=a*10+*(p++)-'0'); \
if (sign) a=-a
typedef struct qtreeNode {
int value;
struct qtreeNode *next;
struct qtreeNode *left;
struct qtreeNode *right;
} QTreeNode;
typedef struct tr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368712/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368712/source.c"
target datalayout = "e-m:e-p270: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.TreeRootNode = type... |
# include <stdio.h>
# include <string.h>
int max(int a, int b)
{
return a >= b ? a : b;
}
int main()
{
int H, W;
int head = 0;
int tail = 0;
scanf("%d%d", &H, &W);
char A[H][W];
int dis[H][W];
memset(dis, -1, sizeof(dis));
int queue_y[H*W], queue_x[H*W];
for (int y = 0; y < H;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368756/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368756/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, 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 <=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3688/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3688/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <string.h>
#include <stdlib.h>
int main(void){
int n,x;
int sum=0;
int sumn=0;
int low=999999;
int m[105];
scanf("%d %d",&n,&x);
for(int count=0;count<n;count++){
scanf("%d",&m[count]);
sum=sum+m[count];
if(low>=m[count]){low=m[count];}
}
sumn=n;
x=x-sum;
sum... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368842/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, X;
scanf("%d %d", &N, &X);
int m[N];
int sum = 0;
int min = 1000;
for(int i = 0; i < N; i++){
scanf("%d", &m[i]);
sum += m[i];
if(min > m[i]) min = m[i];
}
int ans = N + (X - sum) / min;
printf("%d\n", ans);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368886/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368886/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 *argv[]){
int N,X,i,min,answer,sum;
char scan[256];
int array[100000];
scanf("%d %d",&N,&X);
for (i = 0; i < N; i++) {
scanf("%d",&array[i]);
if(i==0||min>array[i]){
min=array[i];
}
}
for (i = 0; i < N; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368929/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368929/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x;
scanf("%d%d", &n, &x);
int i, m, min = 1001, ans = n;
for (i = 0; i < n; ++i) {
scanf("%d", &m);
x -= m;
if (min > m) min = m;
}
ans += x / min;
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368972/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368972/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k, g;
int p, c;
int tmp;
int pattern[100];
int i, j;
scanf("%d %d", &k, &g);
c = k;
for(i=0; i<k; i++){
scanf("%d", &p);
pattern[i] = p;
g -= p;
}
for(i=0;i<k;i++){
for(j=i+1;j<k;j++){
if(pattern[i]>pattern[j]){
tmp = pattern[i];
pattern[i] = pat... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369014/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369014/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d;
scanf("%d %d", &a, &b);
c = a*a;
d = c-b;
printf("%d", d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369058/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* Bichrome Cells
unomi */
#include <stdio.h>
int main(void){
int N=0, A=0;
//Nを入力
scanf("%d",&N);
//Aを入力
scanf("%d",&A);
//N*N-Aを出力
printf("%d\n",N*N-A);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369100/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
ex2_3
ruuu0048
*/
#include <stdio.h>
int main(void){
int N,A; //マス目とAを宣言
scanf("%d",&N); //マス目の入力
scanf("%d",&A); //Aの入力
printf("%d\n",N * N - A); //計算結果を出力
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369144/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex2_1
potter0723sw */
#include <stdio.h>
int main() {
int N,A,answer;
scanf("%d", &N);
scanf("%d", &A);
answer = N*N - A;
printf("%d\n", answer);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,a;
scanf("%d %d",&n,&a);
printf("%d",n*n - a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int n, a;
scanf("%d %d", &n, &a);
printf("%d", n * n - a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
printf("%d\n",a*a-b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369317/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369317/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,a;
scanf("%d %d",&n,&a);
printf("%d\n",n*n-a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369360/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369360/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,m;
scanf("%d%d",&n,&m);
printf("%d\n",n*n-m);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369403/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define sq(x) ((x) * (x))
int main(void){
int n,a;
scanf("%d",&n);
scanf("%d",&a);
printf("%d",sq(n) - a);
return 0;}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369454/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369454/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x;
int i,j;
int n,m;
int sum=0;
int A[100][100]={};
int B[100][100]={};
int Sum[100][100]={};
scanf("%d %d",&n,&m);
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf("%d",&x);
A[i][j]=x;
}
}
for(i=0;i<m;i++){
scanf("%d",&x);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369540/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369540/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 matrixA[100][100] = {0};
int matrixB[100][1] = {0};
int matrixC[100][1] = {0};
int i, j, k;
scanf("%d %d", &n, &m);
for (i = 0; i < n; ++i){
for (j = 0; j < m; ++j){
scanf("%d ", &matrixA[i][j]);
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369584/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369584/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100][100], B[100], n, m, i, j, show = 0;
scanf("%d",&n);
scanf("%d",&m);
for(i = 0; i < n; i++){
for(j = 0; j < m; j++){
scanf("%d",&A[i][j]);
}
}
for(j = 0; j < m; j++){
scanf("%d",&B[j]);
}
for(i = 0; i < n; i++){
for(j = 0; j < m; j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369627/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369627/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100][100], b[100], c[100] = {0};
int i,j,n,m;
scanf("%d %d",&n,&m);
for (i=0; i<n; i++) {
for (j=0; j<m; j++) {
scanf("%d",&A[i][j]);
}
}
for (j=0; j<m; j++) {
scanf("%d",&b[j]);
}
for (i=0; i<n; i++) {
for (j=0; j<m; j++) {
c[i] += A[i][j] * b[j] ;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369670/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369670/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m, n, a[100][100], b,i,j;
scanf("%d %d\n", &n, &m);
for (i = 0; i < n; i++)
for (j = 0; j < m; j++) {
if (j < m - 1)
scanf("%d ", &a[i][j]);
else
scanf("%d\n", &a[i][j]);
}
for (j = 0; j < m; j++) {
scanf("%d", &b);
for (i = 0; i < n; i++)
a[i][j]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369720/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369720/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ,i, j, tmp;
int A[100][100] = {0};
int b[100] = {0};
scanf(" %d %d", &n, &m);
for (i = 0; i < n; ++i) {
for (j = 0; j < m; ++j) {
scanf("%d",&A[i][j]);
}
}
for (i = 0; i < m; ++i) {
scanf(" %d", &b[i]);
}
for(i = 0; i < n; ++i) {
tmp = 0;
for (j = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369764/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369764/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, const char * argv[]) {
int n, m;
int A[100][100];
int B[100];
int h, w, C[100] = { 0 };
scanf("%d %d", &n, &m);
for (h = 0; h<n; h++)
{
for (w = 0; w<m; w++)
{
scanf("%d", &A[h][w]);
}
}
for (w = 0; w<m; w++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369814/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369814/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, A[100][100] = { {0} }, b[100][1] = { {0} }, i, j, c[100][1] = { {0} };
scanf("%d %d", &n, &m);
for (i = 0; i < n; i++)
{
for (j = 0; j < m; j++)
{
scanf("%d", &A[i][j]);
}
}
for (j = 0; j < m; j++)
{
scanf("%d", &b[j][0]);
}
for (i = 0; i < n; i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369865/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369865/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j,a[100][100],b[100],c[100];
for(i=0,scanf("%d%d",&n,&m);i<n;i++){
for(j=0;j<m;j++){
scanf("%d",&a[i][j]);
}
}
for(j=0;j<m;j++){
scanf("%d",&b[j]);
}
for(i=0;i<n;i++){
for(j=0;j<m;j++){
c[i]+=a[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369908/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369908/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
unsigned long inact[100][100]; /* 行列Aの格納用変数 */
unsigned long act[100]; /* 行列Bの格納用変数 */
unsigned long ans[100]; /* 積の格納用変数 */
unsigned short row, col; /* 行列の要素数の格納用変数 */
unsigned short i, j; /* ループ変数 */
/* 配列の初期化 */
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369951/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int a[100][100],b[100],n,m;
long ans=0;
scanf("%d %d", &n,&m);
for(i=0;i<n;++i){
for(k=0;k<m;++k){
scanf("%d", &a[i][k]);
}
}
for(i=0;i<m;++i){
scanf("%d", &b[i]);
}
for(i=0;i<n;++i){
for(k=0;k<m;++k){
ans += a[i][k] *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369995/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d",&n,&m);
int i,j,A[n][m],b[m],c,x;
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf("%d",&A[i][j]);
}
}
for(i=0;i<m;i++){
scanf("%d",&b[i]);
}
for(i=0;i<n;i++){
c = 0;
for(j=0;j<m;j++){
x = A[i][j]*b[j];
c = c+x;
}
printf("%d\n",c);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370036/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370036/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
fflush(stdout);
scanf("%d %d", &n, &m);
int arr1[100][100];
int arr2[100];
int res[100];
fflush(stdout);
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
scanf("%d", &arr1[i][j]);
}
}
for(int i = 0; i < m; i++){
scanf("%d", &arr2[i]);
}
for(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370137/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = external local_un... |
#include <stdio.h>
int main(void){
int m , n ;
scanf("%d %d" , &m , &n);
int gyo_1[100][100] ;
int gyo_2[100] ;
int i , j ;
int a ;
//set gyo_1
for(i = 0 ; i < m ; i++){
for(j = 0 ; j < n ; j++){
scanf("%d" , &gyo_1[i][j]);
}
}
//set gyo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370180/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370180/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,m,b[100],a[100][100],i,k,sum[100];
scanf("%d %d",&n,&m);
for(i=0;i<n;i++){
for(k=0;k<m;k++){
scanf("%d",&a[i][k]);
}
}
for(i=0;i<m;i++){
scanf("%d",&b[i]);
}
for(i=0;i<n;i++){
for(k=0;k<m;k++){
sum[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370223/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100][100], b[100];
int n, m, c, i, j;
scanf("%d %d", &n, &m);
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) {
scanf("%d", &a[i][j]);
}
}
for (i = 0; i < m; i++){
scanf("%d", &b[i]);
}
for (i = 0; i < n; i++) {
c = 0;
for (j = 0; j < ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370267/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, D, E, F;
scanf("%d %d %d %d %d %d", &A, &B, &C, &D, &E, &F);
int i, j, dp[31][1501] = {{1}};
for (i = 0; i <= F / 100; i++) {
for (j = 0; j <= i * E && i * 100 + j <= F; j++) {
if ((i + A) * 100 + j <= F) dp[i+A][j] |= dp[i][j];
if ((i + B) * 100 + j <= F) dp[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370360/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370360/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define MAX(x,y) ((x>y)?(x):(y))
#define Min(x,y) ((x<y)?(x):(y))
double dp[3005];
int sugar[3005];
int main(){
int i,j;
int a, b, c, d, e, f;
scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f);
for (i = 0; i <=f; i++) dp[i] = -1.0;
dp[100*a] =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370403/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mahouzin[15][15];
int kazu;
int x,y;
int ookisa;
while(1) {
scanf("%d",&ookisa);
if(ookisa==0)break;
memset(mahouzin,0,sizeof(mahouzin));
mahouzin[ookisa/2][ookisa/2+1]=1;
x=ookisa/2;y=ookisa/2+1;
for(kazu=2;kazu<=ookisa*ookisa;kazu++) {
x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370447/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h> // printf(), putchar(), scanf()
#include <stdlib.h> // qsort()
#include <string.h> // strcpy()
#include <stdbool.h>
#define MAX_N 10
typedef struct rank_tbl
{
char name[21];
int seq;
int score;
} rank_t;
int
cmp_func(const void *l_, const void *r_)
{
const rank_t *l = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370504/source.c"
target datalayout = "e-m:e-p270: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.rank_tbl = type { [... |
#include <stdio.h>
#define IS_LEAP(y) (((y) % 4 == 0) && ((y) % 100 != 0) || ((y) % 400 == 0))
int month_days[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int last_day(int y, int m)
{
if (IS_LEAP(y) && m == 2){
return (29);
}
return (month_days[m]);
}
int main(void)
{
int y1, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370555/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370555/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@month_days = dso_local loc... |
#include<stdio.h>
int main(){
int n, m;
scanf("%d %d", &n, &m);
int buf = m/n;
int ans = -1;
for(int i=buf; i>=1; i--){
if(m%i == 0){
ans = i;
break;
}
}
printf("%d", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370599/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370599/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
unsigned int N,M,g;
scanf("%d %d",&N,&M);
g=M/N;
int flag=1;;
do{
if(M%g==0)
{flag=0;}
g--;
}while(flag) ;
printf("%d",g+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370641/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370641/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int gcd(int a,int b)
{
if(b==0)
return a;
else
return gcd(b,a%b);
}
int main()
{
int n,m,a,b,c,i;
scanf("%d%d",&n,&m);
scanf("%d",&a);
for(i=1;i<=n;i++)
scanf("%d",&c);
scanf("%d",&b);
for(i=1;i<=m;i++)
scanf("%d",&c);
if(n<m)
printf("0/1\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3707/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main()
{
int a,b,k=1;
scanf("%d %d",&a,&b);
while(1)
{
if(a>=k)
{ a-=k;
k++;
}
else
{ printf("Vladik\n");
break;
}
if(b>=k)
{ b-=k;
k++;
}
else
{ printf("Valera\n");
break;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37075/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37075/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
long long int a,b;
scanf("%lld %lld",&a,&b);
long long int tempa=a;
long long int tempb=b;
int i=1;
int flag;
while(1)
{
if(tempa-i>=0)
{
tempa=tempa-i;
}
else
{
flag=0;
break;
}
i++;
if(tempb-i>=0)
{
tempb=tempb-i;
}
else
{
flag=1;
break;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37080/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37080/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
double v,t,y,n1;
int n;
while(scanf("%lf",&v)!=EOF){
t=v/9.8;
y=4.9*t*t;
n=0;
n1=(5+y)/5;
while(n<n1){
n=n+1;
}
printf("%d\n",n);
}
return 0;
}
//debug for alfa | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370850/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370850/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 v;
while ( scanf( "%lf", &v ) != EOF ) {
for ( n = 1; n <= v * v / 98; n++ ) {}
printf( "%d\n", ++n );
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
int i,j,len,lastIndexValue,flag = 0;
char string1[101];
char string2[101];
scanf("%s%s",&string1,&string2);
len = strlen(string1);
for(i=0;i<len;i++)
{
if(strcmp(string1,string2)==0)
{
flag = 1; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370959/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370959/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
submission # - User: herp_sy
https://atcoder.jp/contests/
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007
int main(int argc, char const *argv[])
{
char s[103],t[103];
char stac... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101],t[101];
scanf("%s%s",s,t);
int i,j=0,k,l=strlen(s);
for(i=0;i<l;i++){
if(strcmp(s,t)==0){
j++;
break;
}
for(k=l;k>0;k--){
t[k]=t[k-1];
}
t[0]=t[l];
t[l]=0;
}
puts(j?"Yes":"No");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 change[101],hikaku[101],take[101];
int N;
int i,j,k;
scanf("%s",change);
scanf("%s",hikaku);
N=strlen(change);
for(i=0;i<N;i++)
{
for(j=i,k=0;j<N;j++,k++)take[k]=change[j];
for(j=0;j<i;j++,k++)take[k]=change[j];
take[k]='\0';
if(strcmp(take,hika... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371130/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371130/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101],T[101],ss;
int i,j,k,c;
scanf("%s %s",S,T);
int len;
len = strlen(S);
for(i = 0;i < len; i++){
c = 0;
for(j = 0; j < len; j++){
if(S[j] == T[j])c++;
}
if(len == c){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371181/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371181/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
scanf("%ld", &n);
long a[n];
for (long i = 0; i < n; i++) {
scanf("%ld", &a[i]);
}
long plus = 0, minus = 0, sum = 0;
for (long i = 0; i < n; i++) {
sum += a[i];
if (i%2 == 0) {
if (sum <= 0) {
plus += 1-sum;
sum = 1;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371231/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371231/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k;
scanf("%d",&i);
if(i >= 1 && i <= 9)
{
printf("%d\n",i);
}
else if(i >= 10 && i <= 99)
{
printf("9\n");
}
else if(i >= 100 && i <= 999)
{
j = (i - 100) + 1;
k = j + 9;
printf("%d\n",k);
}
e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371275/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371275/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans=0;
scanf("%d",&n);
int s[n],a[n];
for(int i=0;n>i;++i)
s[i]=i+1;
for(int i=0;n>i;++i){
a[i]=0;
while(s[i]>0){
s[i]/=10;
++a[i];
}
if(a[i]%2==1)
++ans;
}
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371325/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371325/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 notomamiko(int x) {
int hayamisaori = 0;
do {
hayamisaori++;
} while ((x /= 10) > 0);
return hayamisaori;
}
int main(void) {
int N;
int i;
int mizuhasikaori = 0;
if (scanf("%d", &N) != 1) return 1;
for (i = 1; i <= N; i++) {
if (notomamiko(i) % 2 == 1) mizuhasikaori++;
}
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371369/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371369/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(n/100000!=0) printf("90909\n");
else if(n/10000!=0) printf("%d\n",(n-9999)+909);
else if(n/1000!=0) printf("%d\n",(999-99)+9);
else if(n/100!=0) printf("%d\n",(n-99)+9);
else if(n>=9) printf("9\n");
else if(n%2==0) printf("%d\n",n-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371411/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371411/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<ctype.h>
#include<stdlib.h>
int main(){
int n,cnt=0;
scanf("%d",&n);
for(int i=1;i<=n;i++){
int j=i,keta=0;
while(j!=0){
j/=10;
keta++;
}
if(keta%2==1){
cnt++;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371455/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371455/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,out;
scanf("%d",&n);
if(n>9999)
{
out=n-9999+900+9;
if(n==100000)
out--;
}
else if(n>999)
out=999-99+9;
else if(n>99)
out=n-99+9;
else if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371499/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371499/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,cnt=0;
scanf("%d",&n);
for (;n>0;n--){
if (n<10) cnt++;
else if(n>99 && n<1000) cnt++;
else if(n>9999 && n<100000) cnt++;
}
printf("%d\n",cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371541/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j=0,i,a=1,s=0;
scanf("%d",&n);
for(i=n;i/10;i/=10){
j=1-j;
if(j)s+=a*9;//printf("%d\n",s);
a*=10;
}
//printf("%d %d %d\n",a,j,s);
if(j==0)s+=1+n-a;
printf("%d\n",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371585/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<math.h>
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define ll long long
#define SWAP(a,b) {a+=b;b=a-b;a-=b;}
ll t1[102][2], t2[102][2], t3[102][2], t4[102][2];
/*main内に入れるとスタック領域から溢れる。*/
int main(){
ll N,W,wi,vi,w1 = -1;
ll maxv = 0;
int t1n = 0,t2n = 0,t3n = 0,t4n = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371628/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int m,f,r;
scanf("%d %d %d",&m,&f,&r);
while(m!=-1 || f!=-1 || r!=-1){
if(m==-1 || f==-1) printf("F\n");
else if(m+f>=80) printf("A\n");
else if(65<=m+f && m+f<80) printf("B\n");
else if(50<=m+f && m+f<65) printf("C\n");
else if(30<=m+f && m+f<50 && r>=50) printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371671/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371671/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 input();
int main(){
int num,i;
char output[6] = {' ','A','B','C','D','F'};
while(1){
num = input();
if(num == -1) break;
for(i=1;i<6;i++){
if(num == i){
printf("%c\n",output[i]);
}
}
}
return(0);
}
int input(){
int m,f,r;
scanf("%d %d %d",&m,&f,&r);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[20],b[20];
int m,d,i,j,n,p;
a[1]=31;
a[2]=28;a[3]=31;a[4]=30;a[5]=31;a[6]=30;a[7]=31;a[8]=31;a[9]=30;a[10]=31;a[11]=30;a[12]=31;
b[1]=7;b[2]=6;b[3]=5;b[4]=4;b[5]=3;b[6]=2;b[7]=1;
p=1;
while(scanf("%d%d",&m,&d)==2){
p=1;
j=a[m]-b[d];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37178/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 mid, end, re, sum;
while(1) {
scanf("%d %d %d", &mid, &end, &re);
sum = mid + end;
if (mid == -1 && end == -1 && re == -1) break;
else if (mid == -1 || end == -1) printf("F\n");
else if (80 <= sum) printf("A\n");
else if (65 <= sum && sum < 80) printf("B\n");
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371822/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371822/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m, f, r;
char grade;
while(1) {
scanf("%d %d %d", &m, &f, &r);
if(m == -1 && f == -1 && r == -1)
break;
if(m <= 50 && f <= 50 && r <= 100) {
if(m == -1 || f == -1)
grade = 'F';
else if(m + f >= 80)
grade = 'A';
else if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371866/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371866/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include<stdlib.h>
#include<limits.h>
#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int
int main(){
int n;
scanf("%d", &n);
lld a[n];
rep(i, 0, n){
scanf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,a,n,m;
scanf("%d%d",&m,&n);
int ar[13];
ar[2]=28;
ar[4]=30;
ar[6]=30;
ar[9]=30;
ar[11]=30;
ar[1]=31;
ar[3]=31;
ar[5]=31;
ar[7]=31;
ar[8]=31;
ar[10]=31;
ar[12]=31;
a=ar[m]+n-1;
printf("%d",(a+6)/7);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37196/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
long long int a, b, v, w, t;
scanf("%lld %lld", &a, &v);
scanf("%lld %lld", &b, &w);
scanf("%lld", &t);
if( a < b ){
if( (v-w) * t >= b-a ){
printf("YES\n");
} else {
printf("NO\n");
}
} else {
if( (v... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372074/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372074/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <limits.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
int N,i;
long long int num[52],patty[52],X,eat,center;
char str[100],*p;
fgets(str,sizeof(str),stdin);
p=strtok(str," \n");
N=atoi(p);
p=strtok(NULL," \n");
X=atol(p);
for(i=1,num[0]=1,patty[0]=1;i<N+1;i++){
num[i]=2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372182/source.c"
target datalayout = "e-m:e-p270: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 <math.h>
#define EPS 1e-11
typedef struct
{
double x;
double y;
double r;
} Circle;
int main(void)
{
int n;
scanf("%d", &n);
while (n-- > 0){
Circle a;
Circle b;
double xdif, ydif, d;
double sr, dr;
scanf("%lf %lf %lf", &a.x, &a.y, &a.r);
scanf("%lf %lf %lf", &b.x, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372232/source.c"
target datalayout = "e-m:e-p270: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.Circle = type { dou... |
#include<stdio.h>
#include<math.h>
double dist(double x1, double y1, double x2, double y2)
{
return sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
}
int main()
{
int N, j;
double xa, ya, ra, xb, yb, rb;
double d;
scanf("%d", &N);
while (N--) {
scanf("%lf%lf%lf%lf%lf%lf", &xa, &ya, &ra, &xb, &yb, &rb);
d = dist(xa, ya... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372283/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include <math.h>
int main(void){
int i,j,N;
double dist;
double xa[100],ya[100],ra[100],xb[100],yb[100],rb[100];
scanf("%d",&N);
for(i = 0;i < N;i++){
scanf("%lf",&xa[i]);
scanf("%lf",&ya[i]);
scanf("%lf",&ra[i]);
scanf("%lf",&xb[i]);
scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372391/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372391/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N, M;
int* A;
int num_elements;
void Push(int);
void ChangeTop();
void swapInt(int *, int *);
int main()
{
int i, inValue;
num_elements = 0;
scanf("%d %d", &N, &M);
A = (int*)malloc(sizeof(int) * N);
for (i = 0; i < N; i++) {
scanf("%d", &inValue);
Push(inValue);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372434/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@num_elements = dso_local l... |
#include<stdio.h>
int main(void){
char c[5];
scanf("%s",c);
int w=0;
if(c[0]=='R'){
w++;
}
if(c[1]=='R'){
w += 2;
}
if(c[2]=='R'){
w +=4;
}
if(w==0){
printf("0\n");
}else if(w==1 || w==2 || w==4 || w==5){
printf("1\n");
}else if(w==3 || w==6){
printf("2\n");
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372485/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 weather[3];
int seaquence = 0;
int i,s=0;
scanf("%s",weather);
for(i=0; i<3; i++){
if(weather[i] == 'R'){
s++;
}else{
s=0;
}
if(seaquence <= s){
seaquence = s;
}
}
printf("%d\n",sea... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372535/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372535/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[3];
scanf("%s", &str);
int i, count = 0, result = 0;
for (i = 0;i < 3;i ++) {
if (str[i] == 'R') {
count ++;
result = count;
} else if (str[i] == 'S') {
count = 0;
}
}
printf("%d", result);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372579/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372579/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3];
int days = 0;
int max = 0;
for(int i = 0; i < 3; i++){
scanf("%c", &s[i]);
if(s[i] == 'R'){
days++;
if(max < days){
max = days;
}
} else {
days--;
if(days < 0){
days = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372629/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372629/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
// typedef long long ll;
// int main() {
// return 0;
// }
#include<stdio.h>
#include <math.h>
typedef long long ll;
int main() {
char c;
int days = 0, cc = 0;
for (int i = 3; i > 0; i--)
{
scanf("%c", &c);
if (c == 'R')
{
cc += 1 << (i - 1);
}
}
sw... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372672/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
char a,b,c;
scanf("%c%c%c",&a,&b,&c);
if(a=='R'&&b=='R'&&c=='R')
printf("3");
else if((a=='R'&&b=='R')||(b=='R'&&c=='R'))
printf("2");
else if(a=='R'||b=='R'||c=='R')
printf("1");
else
printf("0");
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372715/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
double xa1, ya1, xa2, ya2;
double xb1, yb1, xb2, yb2;
int tmp;
while ( scanf( "%lf %lf %lf %lf %lf %lf %lf %lf",
&xa1,&ya1,&xa2,&ya2,&xb1,&yb1,&xb2,&yb2 ) == 8 ) {
if ( xa2 < xb1 || xb2 < xa1 || ya2 < yb1 || yb2 <... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372759/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<stdarg.h>
#include<malloc.h>
#include<limits.h>
int main()
{
int i, flag;
double xa[5],ya[5],xb[5],yb[5];
while(scanf("%lf%lf%lf%lf%lf%lf%lf%lf",&xa[1],&ya[1],&xa[2],&ya[2],... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372816/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372816/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define lli long long int
#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))
#define true 1
#define false 0
int main(void){
int r,l;
int powr,powl;
int k = 0;
lli ans = 0;
lli s,t,u;
int a[10];
scanf("%lld",&s);
t = 1;
while(s>=t){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372874/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372874/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c=0,b=0;
int i,j,k,l;
char a[1001][2][101];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s",a[i][0]);
scanf("%s",a[i][1]);
j=0;
while(1){
if(a[i][0][j]=='\0'&&a[i][1][j]=='\0'){
c++;
b++;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372931/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372931/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i, n, e, p1 = 0, p2 = 0;
char s1[101], s2[101];
scanf("%d", &n);
for (i = 0; i < n; ++i) {
scanf("%s %s", s1, s2);
e = strcmp(s1, s2);
p1 += e > 0 ? 3 : (e == 0 ? 1 : 0);
p2 += e < 0 ? 3 : (e == 0 ? 1 : 0);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372975/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372975/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, point[2] = {}, flag;
char tarou[101] = {}, hanako[101] = {};
scanf("%d", &n);
while(n--){
scanf("%s %s", tarou, hanako);
flag = strcmp(tarou, hanako);
if (flag > 0) point[0] += 3;
else if (flag < 0) point[1] += 3;
else point[0]++,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373017/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373017/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373060/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373060/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int H, W;
int i = 0, j = 0;
char c;
int count = 0;
scanf("%d %d\n", &H, &W);
for( i = 0; i < H; i++ ){
do{
scanf("%c", &c);
if( c == '#' ){ count++; }
}while( c != '\n' );
}
if( count == H + W - 1 ){
printf("Possible\n");
}else{
printf("Impossible\n");
}
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373103/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373103/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int count = 0;
int res = 0;
scanf("%d", &n);
if (n % 3) res = 1;
while (n / 3) {
if (res == 0 && n % 3) res = 1;
n /= 3;
if (n == 2) res = 1;
count++;
}
printf("%d\n", count + res);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373154/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373154/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a = 0, b = 0, k = 0, res = 0, count = 0, div = 0;
scanf("%d %d %d", &a, &b, &k);
if (a % b == 0) {
for (int i = b; i >= 1; i--) {
if (count == k) {
break;
}
if ((a % i) == 0 && (b %... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373198/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(a,b) (a)<(b)?(a):(b)
int main(void)
{
int a,b,k;
scanf("%d%d%d",&a,&b,&k);
for(int i=min(a,b);i<=a||i<=b;i--){
if(a%i==0&&b%i==0){
k--;
}
if(k==0){
printf("%d",i);
break;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373240/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373240/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
int a, b, k;
scanf("%d %d %d", &a, &b, &k);
int count = 0;
int i;
if(a<b)i = a;
else i = b;
while(1){
if(a%i == 0 && b%i == 0)count++;
if(count == k)break;
i--;
}
printf("%d\n", i);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373284/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373284/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, g, d[100];
scanf("%d %d %d", &a, &b, &c);
g=0;
for(i=a;i>=1;i--){
if((a%i==0)&&(b%i==0)){
d[g]=i;
g=g+1;
}
}
printf("%d\n",d[c-1]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373327/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373327/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int count,count2=0,count3=0;
int shu[100];
scanf("%d %d %d",&a,&b,&c);
for(count=1;;count++){
if(a%count==0&&b%count==0){shu[count3]=count; count3++;}
if(count==a||count==b){break;}
}
printf("%d",shu[count3-c]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373370/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373370/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100],K,i,cou,cou2,d[100],z=0;
scanf("%d %d %d",&A,&B,&K);
if(A>=B){
for(i=0;i<A;i++){
cou=0;
if(A%(i+1)==0){
if(B%(i+1)==0){
cou++;
}
}
if(cou==1){
c[i]=i+1;
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373413/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373413/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, ans;
scanf("%d %d %d", &a, &b, &c);
i = ( a > b ) ? b : a;
while ( c ) {
if ( !(a % i) && !(b % i) ) {
c -= 1;
ans = i;
}
i--;
}
printf("%d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373457/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373457/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MOD 1000000007
long long powerl (long long p, int n) {
if (n==0)
return 1;
if (n==1)
return p;
long long tmp = powerl (p, n/2);
if (n%2)
return (((tmp*tmp)%MOD)*p)%MOD;
else
return tmp*tmp % MOD;
}
int main () {
int N, K;
long long fact[2001], invfact[2001];
scanf ("%d %d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373543/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373543/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
long a, b;
scanf("%ld %ld", &a, &b);
long ans = 0;
if (a & 1 && b & 1)
{
ans = (b - a) / 2 % 2 ^ a;
}
else if (a & 1 && (b & 1) == 0)
{
ans = (b - a - 1) / 2 % 2 ^ a ^ b;
}
else if ((a & 1) == 0 && b & 1)
{
ans = (b - a + 1) / 2 % 2;
}
else
{
a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373587/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373587/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int t,i;
scanf("%d",&t);
for(i=0;i<t;i++)
{
int n;
scanf("%d",&n);
char str[205],str1[5]="2020";
scanf("%s",str);
if(strcmp(str,str1)==0)
{
printf("YES\n");
contin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37363/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.