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
#ifndef sasamljp | |
#define sasamljp | |
#endif |
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 sasamljp | |
{ | |
public static void main(String[] args) | |
{ | |
sasamljp sasami = new sasamljp(); | |
try | |
{ | |
sasami.sex(); //ここで例外が発生するのですがどうしたらいいのでしょうか | |
} | |
catch(Exception e) |
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; | |
import java.util.StringTokenizer; | |
public class Main | |
{ | |
public static void main(String[] args) | |
{ | |
Scanner scn = new Scanner(System.in); | |
int Num = 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.util.Scanner; | |
import java.util.StringTokenizer; | |
public class Main | |
{ | |
public static void main(String[] args) | |
{ | |
Scanner scn = new Scanner(System.in); | |
int Num = 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
{ | |
List<Integer> plist = new LinkedList<Integer>(); | |
for(int i = 2; i < MAX; i++) | |
{ | |
boolean isPrime = true; | |
for(Integer ing : plist) | |
{ | |
if(i*i > ing.intValue()) break; | |
if(i % ing.intValue() == 0) { isPrime = false; break; } | |
} |
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 Main | |
{ | |
public static void main(String[] args) | |
{ | |
Scanner sc = new Scanner(System.in); | |
String[] arr = sc.nextLine().split( "[,. ]" ); | |
StringBuilder sb = new StringBuilder(); | |
for(String s : arr) |
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 DxLibProxy | |
{ | |
private static readonly int DX_SUCCESS = 0; | |
private static readonly int DX_FAILED = -1; | |
private static readonly int DX_ERROR = 1; | |
public static bool Init() | |
{ | |
return Process( | |
(() => DX.ChangeWindowMode(DX.TRUE) != DX_SUCCESS), |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace AOJ | |
{ | |
class Program | |
{ | |
public static void Main(string[] args) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using QuantumShogi.Environment; | |
using DxLibDLL; | |
using QuantumShogi.Image; | |
namespace QuantumShogi.Logic | |
{ |
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
using System;using System.Linq;class L{public static void Main(){var m=" bottles of beer";var s=m.Replace("s","");var l="on the wall";var n="no more";foreach (var v in Enumerable.Range(1,100)){var d=100-v; var b=d==0; var a=((99+d)%100);Console.WriteLine("{0}{1} {2}, {3}{1}.\n{4}, {5}{6} {2}.\n",b?n.Replace("n","N"):d.ToString(),v==99?s:m,l,b?n:d.ToString(),b?"Go to the store and buy some more":"Take one down and pass it around",a!=0?a.ToString():n,v==98?s:m);}}} |
OlderNewer