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
Dim い As Integer | |
For い = 0 To 5 | |
'ループ内の処理 | |
Next い | |
Dim ろ As Integer | |
For ろ = 0 To 5 | |
'ループ内の処理 |
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 math._ | |
import scala.util._ | |
/** | |
* The code below will read all the game information for you. | |
* On each game turn, information will be available on the standard input, you will be sent: | |
* -> the total number of visible enemies | |
* -> for each enemy, its name and distance from you | |
* The system will wait for you to write an enemy name on the standard output. | |
* Once you have designated a target: |
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 math._ | |
import scala.util._ | |
/** | |
* Auto-generated code below aims at helping you parse | |
* the standard input according to the problem statement. | |
**/ | |
object Player { | |
def main(args: Array[String]) { |
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 scala.util.Random | |
val r = new Random() | |
r.shuffle(List("カ", "ド" ,"カ" ,"ワ", "ン", "ゴ")).take(4).mkString |
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
package controllers; | |
import play.*; | |
import play.mvc.*; | |
import views.html.*; | |
public class Application extends Controller { | |
/** |
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
/** map **/ | |
1 to 100 map { | |
case i if i % 15 == 0 => "fizzbuzz" | |
case i if i % 3 == 0 => "fizz" | |
case i if i % 5 == 0 => "buzz" | |
case i => i | |
} foreach println | |
/** for **/ | |
for(i <- 1 to 100) println( |
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
package com.github.daiksy.play2.ATND | |
import play.api.libs.ws.WS | |
import collection.mutable.ListBuffer | |
import play.api.libs.json.JsValue | |
/** | |
* ATNDのイベントを検索し、取得する。 | |
* | |
* ・使い方 |
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
package com.github.daiksy.play2.ATND | |
import play.api.libs.ws.WS | |
import collection.mutable.ListBuffer | |
import play.api.libs.json.JsValue | |
/** | |
* ATNDのイベントを検索し、取得する。 | |
* https://gist.github.com/2584254を | |
* http://blog.rafaelferreira.net/2008/07/type-safe-builder-pattern-in-scala.html を参考に |
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
package com.github.daiksy.play2.ATND | |
import play.api.libs.ws.WS | |
import collection.mutable.ListBuffer | |
import play.api.libs.json.JsValue | |
/** | |
* ATNDのイベントを検索し、取得する。 | |
* | |
* https://gist.github.com/2585850 を |
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
000100 IDENTIFICATION DIVISION. | |
000200 PROGRAM-ID. HELLOWORLD. | |
000300 DATE-WRITTEN. 05/06/12 00:45. | |
000400* AUTHOR DAIKSY | |
100000 PROCEDURE DIVISION. | |
100100 | |
100200 MAIN-LOGIC SECTION. | |
100300 BEGIN. | |
100500 DISPLAY "HELLO, WORLD." | |
100600 STOP RUN. |
OlderNewer