This file contains 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
//saikoro.c | |
#include<stdio.h> | |
int syori(); | |
int saikoro(); | |
int main() | |
{ | |
syori(); | |
return 0; | |
} |
This file contains 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
#include<stdio.h> | |
#define NUM 10000 | |
int i, j; | |
int car(int n){ | |
int k = n; | |
if(n < 2) return 0; | |
for(i = 2; i < k; i++) | |
if(!(k % i)){ | |
if((k / i) % i == 0) return 0; |
This file contains 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
import java.awt.Color; | |
import java.awt.Container; | |
import java.awt.Font; | |
import java.awt.Graphics; | |
import java.awt.event.WindowAdapter; | |
import java.awt.event.WindowEvent; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; |
This file contains 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
class あいさつ<にほんご> { | |
ことば ことば; | |
static { | |
あいさつしよう: { | |
あいさつ こんにちは = new あいさつ(new ことば("こんにちワン!")); | |
あいさつ ありがとう = new あいさつ(new ことば("ありがとウサギ!")); | |
あいさつ さよなら = new あいさつ(new ことば("さよなライオン!")); | |
こんにちは.と言う(); |
This file contains 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
import java.io.IOException; | |
import java.util.Random; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
@SuppressWarnings("serial") | |
public class ProbabilityTestServlet extends HttpServlet { | |
private final int SAMPLES = 1000; |
This file contains 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
public class ダァシエリイェス { | |
ダァシエリイェス ダァ; | |
ダァシエリイェス シエリ; | |
ダァシエリイェス イェス; | |
public static void main(String[] args) { | |
ダァシエリイェス ダァシエリイェス = new ダァシエリイェス(); | |
ダァシエリイェス.ダァ.シエリ.イェス.ダァシエリイェス(); | |
} |
This file contains 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
#include <stdio.h> | |
int main() | |
{ | |
double ma[2][2]; | |
double det; | |
int i,j,num; | |
for(i=0;i<2;i++){ | |
for(j=0;j<2;j++){ |
This file contains 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
import processing.core.PApplet; | |
public class ProcessingTest extends PApplet { | |
public void setup() { | |
super.init(); | |
size(300, 300); | |
} | |
public void draw() { |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<problem> | |
<case> | |
<number>0</number> | |
<input>2</input> | |
<output>4</output> | |
</case> | |
<case> | |
<number>1</number> | |
<input>3</input> |
This file contains 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
import java.util.Scanner; | |
public class P1104 { | |
static int vec[][] = { { 0, 1 }, { 1, 0 }, { 0, -1 }, { -1, 0 } }; | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
while (sc.hasNext()) { | |
int mapX = sc.nextInt(); |
OlderNewer