Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <stdbool.h>
int main(){
int i, j, n;
char mark;
char marks[4]={'S', 'H', 'C', 'D'};
int num;
bool cards[4][13]={false};
scanf("%d ", &n);
for(i=0;i<n;i++){
scanf("%c %d ", &mark, &num);
for(j=0;j<4;j++){
if(mark==marks[j]){
cards... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.marks = priva... |
#include <stdio.h>
int main()
{
int n,i,j,t;
int data[4][13];
char c;
char gara[4]={'S','H','C','D'};
scanf("%d",&n);
for (i=0;i<4;i++){
for (j=0;j<13;j++){
data[i][j]=0;
}
}
scanf("%d",&n);
for (i=0;i<n;i++){
scanf(" %c",&c);
scanf("%d",&t);
if (c=='S'){
data[0][t-1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.gara = privat... |
#include <stdio.h>
int a[4][13];
int cnt=0;
int i,j;
int main(){
for(i=0; i<4;i++){
for(j=0; j<13;j++){
a[i][j]=0;
}
}
scanf("%d" ,&cnt);
for(i=0; i<cnt; i++){
char c;
int k;
scanf(" %c %d" ,&c,&k);
switch(c){
case 'S':
a[0][k-1]=1;
break;
case 'H':
a[1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215089/source.c"
target datalayout = "e-m:e-p270: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 global i32... |
#include <stdio.h>
int s2i(int s) {
switch (s) {
case 'S': return 0;
case 'H': return 1;
case 'C': return 2;
case 'D': return 3;
default: return 4;
}
}
int i2s(int i) {
if (i < 0 || 3 < i) return '?';
return "SHCD"[i];
}
int main(void) {
char aru[5][14] = {{0}};
int asumi_kana, kitamura_eri;
if (sca... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s,rank,n;
char c,suit[4]={'S','H','C','D'};
int card[4][14];
scanf("%d\n",&n);
for(s=0;s<4;s++){
for(rank=1; rank<14; rank++){
card[s][rank] = 0;
}
}
for(int i=0;i<n;i++){
scanf("%c %d\n",&c,&rank);
for(s=0;s<4;s++){
if(suit[s]==c)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215232/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t[4][14];
int n, i,j,c;
char m, d;
for(i=0; i < 4; i++){
for(j=0; j < 14; j++){
t[i][j]=0;
}
}
scanf("%d", &c);
for(i = 0; i < c; i++){
scanf("%c", &d);
scanf("%c %d", &m, &n);
if(m == 'S'){
t[0][n] = 1;
}
else if(m == 'H'){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215283/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 total,a;
char ch, r;
int j,i;
int cards[4][13];
for(i=0;i<4;i++){
for(j=1;j<14;j++){
cards[i][j]=0;
}
}
scanf("%d",&total);
for(a=0;a<total;a++){
scanf("%c%c %d",&r,&ch,&j);
if(ch=='S') i=0;
if(ch=='H') i=1;
if(ch=='C') i=2;
if(ch==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215326/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,a[200001],i,j,k;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
printf("%d %d\n",a[1]-a[0],a[n-1]-a[0]);
for(i=1;i<n-1;i++)
{
j=a[i+1]-a[i];
if(a[i]-a[i-1] < a[i+1]-a[i])
j=a[i]-a[i-1];
k=a[n-1]-a[i];
if(a[i]-a[0] > a[n-1]-a[i])
k=a[i]-a[0];
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21537/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 min(a,b) (((a)>=(b))?(b):(a))
#define max(a,b) (((a)>=(b))?(a):(b))
int ar[150000],hs[4],a;
void hes(int s){
hs[0]=-2100000000;
hs[1]=2100000000;
hs[2]=2100000000;
hs[3]=-2100000000;
if(s>0){
hs[1]=ar[s]-ar[s-1];
hs[0]=ar[s]-ar[0];
}
if(s<a-1){
hs[2]=ar[s+1]-ar[s];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@hs = dso_local local_unnamed... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
long i,A,B,K;
char str[100],*p;
fgets(str,sizeof(str),stdin);
p=strtok(str," \n");
A=atol(p);
p=strtok(NULL," \n");
B=atol(p);
p=strtok(NULL," \n");
K=atol(p);
if(A+K-1>=B-K+1){
for(i=A;i<=B;i++){
printf("%l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215463/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215463/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main(){
int a, b, k, i;
scanf("%d %d %d", &a, &b, &k);
if((b-a+1)/2 < k){
for(i=a;i<=b;i++){
printf("%d\n", i);
}
} else {
for(i=a;i<=a+k-1;i++){
printf("%d\n", i);
}
for(i=b-k+1;i<=b;i++){
printf("%d\n", i);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215506/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
scanf("%d",&n);
int a[n];
int i;
for(i=0;i<n;i++)
scanf("%d",&a[i]);
printf("%d ",a[1]-a[0]);
printf("%d\n",a[n-1]-a[0]);
for(i=1;i<n-1;i++)
{
if(a[i]-a[i-1]>a[i+1]-a[i])
printf("%d ",a[i+1]-a[i]);
else
printf("%d ",a[i]-a[i-1]);
if(a[n-1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21555/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21555/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/*
============================================================================
Name : AtCoder_B.c
Author :
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
#include <stdio.h... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215593/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215593/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b,i,j,r,k,t,q;
int g[6]={2,3,5,10,12,15},p[6]={380,550,850,1520,1870,2244},dp[52];
void f(int n)
{
int i;
for(i=g[n],dp[g[n]]=p[n];i<52;i++)
dp[i]=i-g[n]>=2&&dp[i]>dp[i-g[n]]+p[n]?dp[i-g[n]]+p[n]:dp[i];
}
int main()
{
memset(dp,0xf,52*4);
for(i=0;i<6;i++)
f(i);
for(;sca... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215658/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215658/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@g = dso_local local_unname... |
#include <stdio.h>
int main(void){
int i;
char s[3];
scanf("%s",s);
if(s[2]==NULL)
printf("%s",s);
else{
for(i=0;i<3;i++)
printf("%c",s[2-i]);
}
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215700/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215700/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 moji[100];
int i;
scanf("%s",moji);
for(i=0; moji[i]!='\0'; ++i);
if(i==2){
printf("%c",moji[0]);
printf("%c",moji[1]);
}
if(i==3){
printf("%c",moji[2]);
printf("%c",moji[1]);
printf("%c",moji[0]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215744/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 2097: Triangles
// 2017.11.7 bal4u@uu
#include <stdio.h>
#include <math.h>
#define PI 3.1415926535897932384626433832795
#define ROOT3 1.7320508075688772935274463415059
int main()
{
int n;
while (scanf("%d", &n) && n > 0) {
if (n % 3 == 0) n /= 3;
printf("%lf\n", n/(1/tan(PI/(3*n))+ROOT3));
}
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215801/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n;
scanf("%d",&n);
r=n%10;
if(r==3){printf("bon\n");}
else if(r==0||r==1||r==6||r==8){
printf("pon\n");
}
else if(r==2||r==4||r==5||r==7||r==9){
printf("hon\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215852/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,r,temp;
scanf("%d",&n);
temp=n;
r=temp%10;
if(r==3)
printf("bon");
else if(r==0||r==1||r==6||r==8)
printf("pon");
else printf("hon");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215902/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215902/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[])
{
char s[4];
scanf("%s",s);
int i;
for(i=0;i<4;i++) {
if (s[i+1]=='\0') {
break;
}
}
if (s[i]=='2' || s[i]=='4' ||s[i]=='5' ||s[i]=='7' ||s[i]=='9') {
printf("hon\n");
}else if(s[i]=='0' ||s[i]=='1' ||s[i]=='6' ||s[i]=='8') {
printf("pon\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215946/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215946/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long int n,l=0,m=0,o=0,p=0,c,d,e=0,f=0,i;
long long int a[100000];
scanf("%lld\n",&n);
for(i=0;i<n;i++)
{
scanf("%lld",&a[i]);
}
c=a[0];
d=a[n-1];
e=a[1]-a[0];
f=a[n-1]-a[0];
printf("%lld %lld\n",e,f);
for(i=1;i<n-1;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21599/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21599/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,p;
scanf("%d",&n);
switch(n%10){
case 0:
case 1:
case 6:
case 8:
printf("pon\n");
break;
case 3:
printf("bon\n");
break;
default:
printf("hon\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216031/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216031/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* kadai 3_2
nabe9393 */
#include<stdio.h>
int main(void){
int number_pen;
scanf("%d", &number_pen); //入力
if (number_pen % 10 == 3){ //1のくらいが3の時はBON
printf("bon\n");
}
else if (number_pen % 10 == 0 || number_pen % 10 == 1 || number_pen % 10 == 6 || number_pen % 10 == 8){ //1のくらいが0,1,6,8の時はPON
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216075/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216075/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*3.2 hightierra*/
#include <stdio.h>
int main(void){
//変数の定義
int N,amari;
scanf("%d",&N);
//iにNの1の位を代入
amari = N % 10;
//iの値で場合わけ
switch(amari){
case 2:
case 4:
case 5:
case 7:
case 9:
printf("hon");
break;
case 0:
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216118/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216118/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex3_2
moka223711 */
#include <stdio.h>
int main(void){
int N;
// 入力Nを受け取る
scanf("%d", &N);
// N % 10で1の位を取得する
// switch文で各値に対してN本の本の読み方を出力する
switch(N % 10){
case 2: case 4: case 5: case 7: case 9:
printf("hon");
break;
case 0: case 1: case 6: case 8:
printf("pon");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216169/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216169/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex3_2
pptenshi */
#include<stdio.h>
int main(void) {
int n;
int n_1; // nの1の位
// input
scanf("%d", &n);
n_1 = n % 10;
//output
switch (n_1) {
case 2: case 4: case 5: case 7: case 9:
printf("hon\n");
break;
case 0: case 1: case 6: case 8... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216211/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216211/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#pragma region 定義
#define i_cin(X) scanf("%d", &X)
#define i_cin2(X,Y) scanf("%d %d",&X,&Y)
#define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W)
#define i_cin3(X,Y,Z) scanf("%d %d %d",&X,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216255/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216255/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 hon[10];
scanf("%s",&hon);
for(int i=0;i<=3;i++){
if(hon[i+1]=='\0'){
if(strncmp("3",&hon[i],1)==0){
printf("bon");
return 0;
}else if(strncmp("0",&hon[i],1)==0||strncmp("1",&hon[i],1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216305/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216305/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int N;
scanf("%d",&N);
if(N%10==3)
printf("bon");
else if(N%10==0||N%10==1||N%10==6||N%10==8)
printf("pon");
else
printf("hon");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216363/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
//宣言
int N;
//読み込み
scanf("%d",&N);
//結果
if(N%10==2||N%10==4||N%10==5||N%10==7||N%10==9)
{
printf("hon");
}else if(N%10==0||N%10==1||N%10==6||N%10==8){
printf("pon");
}else{
printf("bon");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216406/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216406/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//░░░
// ░ anzim bin nasir
// ░
#include<stdio.h>
int main()
{
long long int a,b,x,y,ans;
int t;
scanf("%d",&t);
while(t--)
{
scanf("%lld%lld%lld%lld",&x,&y,&a,&b);
if(2*a>b)
{
if(x>y)
{
ans=(x-y)*a+y*b;
printf("%lld\n",ans)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21645/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21645/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
// long long int a[1000000], b[1000000];
// long long int cmpfunc (const void * a, const void * b) {
// return ( *(long long int*)a - *(long long int*)b );
// }
// long long int square(long long int x, long long int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21650/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21650/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <math.h>
int main (void)
{
int n;
scanf("%d", &n);
switch (n % 10) {
case 2:
case 4:
case 5:
case 7:
case 9:
puts("hon");
break;
case 0:
case 1:
cas... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216543/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216543/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<ctype.h>
//main関数
int main() {
int N;
scanf("%d",&N);
N = N % 10;
if(N == 2 || N==4 || N == 5 || N==7 || N==9 ){
printf("hon");
} else if ( N==0 || N==1 || N==6 || N==8){
printf("pon");
}else{
printf("bon");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216587/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216587/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<ctype.h>
#include<limits.h>
#include<float.h>
#include<math.h>
#include<stdbool.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define min(x, y) ((x<y) ? x : y)
#define max(x, y) ((x<y) ? y : x)
#define loop(a, b, c) for(long long int a = b; a < c; a++)
#define loop_(a, b, c) for(long long int a = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main(void){
int k;
char s[110];
scanf("%d %s",&k,s);
if(strlen(s)>k){ s[k]='\0';printf("%s...\n",s);}
else puts(s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216673/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101];
int n, h;
scanf("%d", &n);
scanf("%s", s);
h = strlen(s);
if(h <= n){
printf("%s", s);
}else{
for(int i = 0; i < n; i++){
printf("%c", s[i]);
}
printf("...");
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216716/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216716/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100];
int k,l,i;
scanf("%d",&k);
scanf("%s",s);
l=strlen(s);
if(k<l)
{for(i=0;i<k;i++)
printf("%c",s[i]);
printf("...");
}
else printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216767/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216767/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 T, l, cnt0, cnt1, i;
char ch[110], c;
scanf("%d", &T);
while (T--) {
scanf("%s", ch);
l=strlen(ch);cnt0=0; cnt1=0;
for (i=0; i<l; i++) {
if (ch[i]=='0') cnt0++;
else cnt1++;
}
if (cnt... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21681/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21681/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main()
{
int k,c,i;
char t[10000];
scanf("%d",&k);
scanf("%s",t);
c=strlen(t);
if(c<=k)
{
printf("%s",t);
}
else
{
for(i=0;i<k;i++)
{
printf("%c",t[i]);
}
printf("...\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216853/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216853/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k;
char s[128], w[128];
scanf("%d", &k);
scanf("%128s", s);
if(strlen(s) <= k){
puts(s);
}else{
strncpy(w, s, k);
w[k] = '.';
w[k + 1] = '.';
w[k + 2] = '.';
w[k + 3] = '\0';
puts(w);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216897/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216897/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
getchar();
for(i=1;i<=T;i++){
char str[200];
scanf("%s",str);
int len,sum=0;
len=strlen(str);
int j;
for(j=0;j<len;j++){
sum+=(str[j]-'0');
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21694/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21694/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
unsigned long int a, b, c;
char s[100];
int i;
scanf("%ld", &a);
scanf("%s", &s);
for (i = 0; i < 100; i++) {
if (s[i] == '\0') {
break;
}
}
if (i <= a) {
printf("%s", s);
}
else {
for (i = 0; i < a; i++) {
printf("%c", s[i]);
}
printf("...");
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216983/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216983/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include<string.h>
#define rep(i,n) for(int i=0; i < (n); i++)
int main(){
int k;
char s[100];
scanf("%d%s",&k,s);
int len=strlen(s);
if(len<=k){
printf("%s\n",s );
return 0;
}else{
rep(i,k){
printf("%c",s[i]);
}
printf("...");
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217025/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217025/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[128];
int limit,i;
scanf("%d%*c",&limit);
scanf("%s%*c",str);
if(strlen(str)<=limit){
puts(str);
}else{
for(i=0;i<limit;i++){
putc(str[i],stdout);
}
puts("...");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217083/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217083/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#define STACK_MAX (100 + 1)
double stack[STACK_MAX];
int head = 0;
void push(double n){
int i;
for (i = head; i > 0; i--){
stack[i] = stack[i - 1];
}
head++;
stack[0] = n;
}
double pop(void){
double temp;
int i;
temp = stack[0];
for (i = 0; i < head - 1; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217148/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217148/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@head = dso_local local_unn... |
#include<stdio.h>
#include<string.h>
int main()
{
int len,count0,count1,T,l,i;
scanf("%d",&T);
for(l=1;l<=T;l++){
char t[100];
scanf("%s",&t);
len=strlen(t);
count0=0;
count1=0;
for(i=0;i<len;i++){
if(t[i]=='1')
count1++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21722/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21722/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
void write_chess(int stage,int width);
int main()
{
int h,w,s;
int i,j,k;
int check=1;
while(check){
scanf("%d %d",&h,&w);
if(h==0 && w == 0){
check=0;
} else {
for(i=1;i<=h;i++){
s = i%2;
write_chess(s,w);
}
printf("\n");
}
}
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217278/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217278/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int H, W, i, j;
scanf("%d %d", &H, &W);
while(H != 0 && W != 0){
for(i = 0; i < H; i++){
for(j = 0 ; j < W; j++){
if(i % 2 == 0){
if(j % 2 == 0){
printf("#");
}else{
printf(".");
}
}else if(i % 2 == 1){
if(j % 2 == 0){
printf(".");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217328/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217328/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <limits.h>
int main(void) {
int H, W, i, j;
while (1){
scanf("%d %d", &H, &W);
if (H == 0 && W == 0) break;
for (i = 0; i < H; ++i){
for (j = 0; j < W; ++j){
if ( (i+j)%2==0) printf("#");
else printf(".... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217371/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217371/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, w, H, W;
for(;;){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)
break;
for(h = 0; h < H; h++){
for(w = 0; w < W; w++){
if(h % 2 == 0){
if(w % 2 == 0){
printf("#");
}else{
printf(".");
}
}else{
if(w % 2 == 1){
printf("#");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217414/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217414/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, H, W;
scanf("%d %d", &H, &W);
while((H!=0)||(W!=0)){
for(i=0; i<H ;i++){
for(j=0; j<W; j++){
if((i+j)%2 == 0)
printf("#");
else
printf(".");
if(j==(W-1))
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217458/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217458/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 read(int *a)
{
int h,w;
scanf("%d %d", &h, &w);
if(h == 0 && w == 0)
return 0;
a[0] = h; a[1] = w;
return 1;
}
void printChess(int *a)
{
int i, j;
char sym[] = {'#', '.'};
for(i=0;i<a[0];i++) {
for(j=0;j<a[1];j++) {
printf("%c", sym... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217508/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217508/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 height[300], weight[300];
int i = 0, j = 0, count = 0, l = 0;
for(i=1;i<=300;i++){
scanf("%d %d", &height[i], &weight[i]);
if(height[i]==0&&weight[i]==0) break;
count++;
}
for(l=1;l<=count;l++){
for(i=1;i<=height[l];i++){
for(j=1;j<=weight[l];j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217551/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217551/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
// 1_5-A Print a Rectangle
int h,w;
int i,j;
scanf("%d %d",&h,&w);
while(h!=0 && w!=0){
for(i=0; i<h; i++){
for(j=0; j<w; j++){
if((i+j)%2==0){
printf("#");
}else{
printf(".");
}
}
printf("\n");
}
printf("\n");
scanf("%d %d",&h,&w);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217595/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217595/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
void printRectangle(int H, int W){
int i,j;
int check_cnt = 0;
int line_cnt = 0;
for(i=0; i<H; i++){
check_cnt = line_cnt;
for(j=0; j<W; j++){
if(check_cnt %2 == 0) printf("#");
else printf(".");
check_cnt++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217645/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217645/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.3 = private unnamed_a... |
#include <stdio.h>
int main(void){
int H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0&W==0)break;
for(i=0;i<H;i++){
if(i%2==0){
for(j=0;j<W;j++){
if(j%2==0){
printf("#");
}else{
printf(".");
}}
}else{
for(j=0;j<W;j++){
if(j%2==1){
printf("#");
}else{
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217689/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217689/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <time.h>
#include <stdlib.h>
int main()
{
long long int n,k,i,j,count;
long long int* arr=(long long int*)malloc(sizeof(long long int )*10000000);
scanf("%I64d %I64d",&n,&k);
j=1;
for(i=1;i*i<=n;i++)
{
if(n%i==0)
{
arr[j]=i;
j+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21784/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21784/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){//float?????????double???
int i,j,h,w,a;
a=1;
while(a==1){
scanf("%d %d",&h,&w);
if(h==0&&w==0){
break;
}
for(i=1;i<=h;i++){
for(j=1;j<=w;j++){
if((j+i)%2==1) printf(".");
else printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217890/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217890/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, w, H, W;
while (1) {
scanf("%d %d", &H, &W);
for (h = 1; h <= H; h++)
{
if (h % 2 != 0) {
for (w = 1; w <= (W); w++) {
if (w % 2 != 0) {
printf("#");
}
else
{
printf(".");
}
}
}
else {
for (w = 1; w <= (W); w++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217984/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217984/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int i,j,H,W;
while(scanf("%d %d",&H,&W)!=EOF)
{
if(H==0&&W==0)
{
break;
}
for ( i = 0; i < H; i++ )
{
for ( j = 0; j < W; j++ )
{
if((j%2==1&&i%2==1)||(j%2==0&&i%2==0))
{
printf("#");
}
else if((j%2==1&&i%2==0)||(j%2==0&&i%2==1))
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218026/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218026/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[101]={0};
int i=0;
int diff=0;
int old=0;
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
diff = a[1]-a[0];
int flag=0;
for(i=2;i<n;i++)
{
old = diff;
diff = a[i]-a[i-1];
if(old!=diff){flag=1;break;}
}
if(flag==0)printf("%d\n",a[n-1]+diff);
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21807/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21807/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,flag=1,as=0,t,oddt;
scanf("%d%d%d",&n,&oddt,&t);
as=t-oddt;
oddt=t;
while (n-->2)
{
scanf("%d",&t);
if (flag==1)
if (t-oddt!=as)
flag=0;
else
oddt=t;
}
if (flag==1)
printf("%d\n",oddt+as);
else
printf("%d\n",t);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21812/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21812/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void)
{
int a, b, c, w, h;
for (c = 1;;)
{
scanf("%d %d", &a, &b);
if (a == 0 && b == 0)
break;
for (h = 1;h <= a;h++)
if (h % 2 == 0)
{
for (w = 1;w <= b;w++)
{
if (w % 2 == 0)
printf("#");
else
printf(".");
}
printf("\n");
}
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218163/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0){
break;
}
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if(j%2==1){
if(i%2==1){
printf("#");
}else{
printf(".");
}
}else{
if(i%2==1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218220/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
//prototype
int main(void);
int main(void){
int i, j; //count variable
int height, width;
while(1){
scanf("%d", &height); scanf("%d", &width);
if(height == 0 && width == 0){
break; //Exit conditions
}
for (i = 1; i <= height; i++) {
if (i % 2 != 0) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218264/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w[300], h[300];
int i_count = 0;
while (1){
scanf("%d %d", &h[i_count], &w[i_count]);
if (h[i_count] == 0 && w[i_count] == 0)
break;
i_count++;
}
int i, j,n=i_count;
for (i_count = 0; i_count < n; i_count++){
for (i = 0; i < h[i_count]; i++){
for (j = 0; j < ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218314/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218314/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void printChessboard(int h, int w) {
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
((i + j) % 2 == 0) ? printf("#") : printf(".");
}
printf("\n");
}
printf("\n");
}
int main() {
int h, w;
while (1) {
scanf("%d %d", &h, &w... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.3 = private unnamed_a... |
#include<stdio.h>
int main()
{
int h, w;
int i, j;
for (;;)
{
scanf("%d %d", &h, &w);
if (h == 0 && w == 0)
break;
for (i = 0; i < h; i++)
{
for (j = 0; j < w; j++)
{
if ((i + j) % 2 == 0)
printf("#");
else
printf(".");
}
printf("\n");
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218444/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218444/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0) break;
for(int i=1;i<=H;i++){
for(int k=1;k<=W;k++){
if(i%2!=0){
if(k%2!=0){
printf("#");
}else printf(".");
}else{
if(k%2==0){
printf("#");
}else printf(".");
}
}
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218530/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218530/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K;
scanf("%ld %ld %ld",&A,&B,&K);
if(A>K){
A = A-K;
}else{
K = K-A;
A = 0;
if(K > B){
B = 0;
}else{
B = B-K;
}
}
printf("%ld %ld\n",A,B);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218581/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218581/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long int a,b,k;
scanf("%lld%lld%lld",&a,&b,&k);
if(a>=k)
printf("%lld %lld\n",a-k,b);
else if(a+b>=k)
printf("0 %lld\n",a+b-k);
else
printf("0 0\n");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
unsigned long l_havingCookieCountOfTakahashi;
unsigned long l_havingCookieCountOfAoki;
unsigned long l_repeatCount;
scanf("%ld%ld%ld", &l_havingCookieCountOfTakahashi, &l_havingCookieCountOfAoki, &l_repeatCount);
if (l_havingCookieCountOfTakahashi > l_repeatCo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
unsigned long int a, b, k;
scanf("%lu %lu %lu",&a,&b,&k);
if(a <= k)
{
if(b <= (k - a))
{
b = 0;
a = 0;
}
else
{
b -= (k - a);
a = 0;
}
}
else
{
a -= k;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218725/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218725/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long int
void sort(int array[],ll n){
ll i,j,temp;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
if (array[j] > array[j + 1])
{
temp = array[j];
array[j] = array[j + 1];
array[j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218769/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218769/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
* main.c
*
* Created on: 2019/12/29
* Author: family
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a > b ? b : a)
typedef long long int ll;
int main()
{
ll A = 0, B = 0, K = 0;
scanf("%lld %lld %lld", &A, &B, &K);
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218811/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n,a;
scanf("%d",&n);
int i = 0;
do
{
do
{
a = i * (i + 1) / 2;
i ++;
} while (a < n);
printf("%d\n",i -1);
n -= (i - 1);
i = 0;
} while (n != 0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218855/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218855/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gethead(int n) {
if(0 < n && n < 10)
return n;
return gethead(n/10);
}
int gettail(int n) {
return n%10;
}
int main(void) {
int n, i, j;
scanf("%d", &n);
int **count = malloc(sizeof(int *)*9);
for(i = 0; i < 9; i++) {
*(count + i) = malloc(sizeof(int)*9);
for(j ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218905/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218905/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
void solve(){
ll a,b;
scanf("%lld",&a);
b=360;
while(b%a != 0)
b+=360;
printf("%lld",b/a);
}
int main()
{
int t=1;
// cin >> t;
while (t--) solve();
// cerr << "Run Time : " << ((double)(clock() - z) / CLOCKS_PER_SEC);
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218949/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218949/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
double PI = atan(1) * 4;
double x = 0, y = 0;
int X;
int angle = 0;
int K = 0;
if (scanf("%d", &X) != 1) return 1;
do {
angle = (angle + X) % 360;
x -= sin(angle * PI / 180);
y += cos(angle * PI / 180);
K++;
} while (fabs(x * x + y * y) > 1e-7);
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218992/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 visited[200][200];
int dfs(int x,int y,int turn) {
int sum=0;
if(visited[y][x]==0)sum++;
if(visited[y][x]>=turn+1)return 0;
visited[y][x]=turn+1;
if(turn>0) {
sum+=dfs(x,y+1,turn-1);
sum+=dfs(x+1,y+1,turn-1);
sum+=dfs(x-1,y,turn-1);
sum+=dfs(x+1,y,turn-1);
su... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219034/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219034/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@visited = dso_local local_... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int fun(char *,char *,int );
int fun(char *s1,char *s2,int n)
{
int i,j=0,t=0;
for(i=0;i<n;i++)
{
while(s1[i+t]==s2[j+t])
{
t++;
if(s1[i+t]=='\0')
{
break;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219078/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219078/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sl(x) scanf("%ld", &x)
#define ss(x) scanf("%s", x)
#define pl(x) printf("%ld\n", x)
#define INF 100000000000
#define M 1000000007
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))
int main() {
long N;
char s[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219128/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219128/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c, p, l, lp;
long long r;
void write(long long n) {
if(n) {
write(n / 10);
putchar_unlocked('0' + n % 10);
}
}
int main() {
for(; (c = getchar_unlocked()) != EOF && c > ' '; r += ++l) {
if(c != p) {
if(c == '<')
r -= l < lp ? l : lp;
p = c, lp = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219179/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219179/source.c"
target datalayout = "e-m:e-p270: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>
int main(void){
int n , a , b;
scanf("%d %d %d",&n ,&a ,&b);
if((b-a)%2 == 0){
printf("Alice\n");
}
else{
printf("Borys\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219221/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219221/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,c,d,i,j,k;
scanf("%lf %lf %lf %lf",&a,&b,&c,&d);
a=a/2;
k=3.1415926535897*(a*a)*b;
i=(3.1415926535897)*(a*a)*d;
if(i>c) printf("NO");
else {
printf("YES\n");
j=1/(c-i);
printf("%.12lf",k/(c-i));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21928/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 fun(const void *a,const void *b)
{
return *(int *)b-*(int *)a;
}
int main()
{
long long int n,k,li[100001],sum=0,total=0,ans,rest;
scanf("%lld",&n);
for(k=0;k<n;k++)
{
scanf("%lld",&li[k]);
total+=li[k];
}
qsort(li,n,sizeof(li[0]),fun);
//printf("%lld %lld %lld",li[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21933/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21933/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 s[100010],t[100010],idx[100010];
int c(const void*p,const void*q){
if(t[*(int*)p]<t[*(int*)q])return -1;
return 1;
}
int main(){
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)scanf("%d%d",s+i,t+i);
for(int i=0;i<n;i++)idx[i]=i;
qsort(idx,n,sizeof(int),c);
int ans=0,time=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219380/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219380/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@t = dso_local global [1000... |
#include<stdio.h>
int main()
{
int N;
scanf("%d",&N);
if((N/100)==(N%10))printf("Yes");
else printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219423/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219423/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &num);
int numCopy = num;
int numReverse = 0;
int tmp;
while (numCopy != 0)
{
tmp = numCopy % 10;
numCopy = numCopy / 10;
numReverse = numReverse * 10 + tmp;
}
if (num == numReverse)
{
printf("Yes\n");
}
else
{
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219467/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ar[120000];
int main(){
int t=0,max=-1e9,a,b,c,d,x,y,z,i,j;
scanf("%d",&a);
for(x=1;x<=a;x++){
scanf("%d",&ar[x]);
}
for(i=1;i<=a;i++){
if(ar[i]>max)
max=ar[i];
}
for(i=1;i<=a;i++){
if(ar[i]!=max){
t=t+ar[i];
}
}
printf("%d",max-t+1);
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21951/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
char x[5];
scanf("%s",x);
if(x[0]==x[2])puts("Yes");
else puts("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219553/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(){
int N;
scanf("%d",&N);
int a=N/100;
int b=N%10;
if (a==b){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%10 == N/100)
printf("Yes");
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219669/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219669/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
//Ver.20181228
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219711/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219711/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sd = type { i32, i3... |
#include <stdio.h>
int main()
{
long long int i,A,B,M,a[100001],b[100001],x,y,c,amin,bmin,sum;
scanf("%d %d %d",&A,&B,&M);
scanf("%d",&a[0]);
amin=a[0];
for(i=1;i<A;i++)
{
scanf("%d",&a[i]);
if(a[i]<amin)
amin=a[i];
}
scanf("%d",&b[0]);
bmin=b[0];
for(i=1;i<B;i++)
{
scanf("%d",&b[i]);
if(b[i]<bmi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219762/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219762/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int acs(const void *a, const void *b) {
return *(int*)a - *(int*)b;
} /* 1,2,3,4.. */
int des(const void *a, const void *b) {
return *(int*)b - *(int*)a;
} /* 8,7,6,5.. */
int cmp_char(const void *a, const void *b) {
return *(char*)a -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219805/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219805/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K,X;
scanf("%d%d",&K,&X);
for(i=X-K+1;i<X+K;i++)
printf("%d\n",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219849/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219849/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int x,y,a,b,c,i;
scanf("%d%d", &x, &y);
a = x-1;
b = y+a;
c = y-a;
for(i=c;i<=b;i++)
{
printf("%d ", i);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219892/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219892/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x, i, n;
scanf("%d", &k);
scanf("%d",&x);
n = x + k - 1;
for(i = x - k + 1; i <= n; i++) {
printf("%d ", i);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219935/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219935/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.