This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @JUDGE_ID: 26089BN 112 C "" */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define TRUE 1 | |
#define FALSE 0 | |
#define NULLNODE 2 | |
char c; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @JUDGE_ID: 26089BN 106 C "" */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
int gcd(int i, int j) { | |
int r; | |
while (j != 0) { | |
r = i % j; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @JUDGE_ID: 26089BN 105 C "" */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define MAX 10000 | |
int main() { | |
int height[MAX]; | |
int i; | |
int from, to, h; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @JUDGE_ID: 26089BN 100 C "" */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define MAX 1000000 | |
#define UNDEF -1 | |
int table[MAX+1]; | |
int collatz(int x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.time_circle; | |
import android.app.AlertDialog; | |
import android.app.Dialog; | |
import android.app.DialogFragment; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.View; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 20 | |
buildToolsVersion "21.1.2" | |
defaultConfig { | |
applicationId "com.example.time_circle" | |
minSdkVersion 17 | |
targetSdkVersion 17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:1.1.0' | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream app { | |
server unix:/usr/local/nginx/html/apps/service/shared/tmp/sockets/unicorn.app.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name service.dbsj.org; | |
client_max_body_size 4G; | |
root /usr/local/nginx/html/apps/service/current/public; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size(480, 120); | |
rect(160, 30, 260, 20); | |
ellipse(140, 0, 190, 190); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size(200, 200); | |
colorMode(HSB, 100); | |
background(99); | |
noStroke(); | |
int i; | |
for (i = 0; i <= 3; i = i + 1) { | |
fill(45, 80 - 20 * i, 99); | |
rect(0, 0, 200 - 50 * i, 200 - 50 * i); | |
} |