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 'dart:convert'; | |
import 'dart:io'; | |
import 'dart:math'; | |
import 'package:http/http.dart' as http; | |
class Album { | |
final int userId; | |
final int id; | |
final String title; |
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
DROP TABLE IF EXISTS club_roster; | |
DROP TABLE IF EXISTS students; | |
DROP TABLE IF EXISTS clubs; | |
CREATE TABLE clubs ( | |
id serial PRIMARY KEY, | |
name text NOT NULL | |
); |
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 main | |
import ( | |
"fmt" | |
"io" | |
"os/exec" | |
) | |
func main() { | |
//わかりやすさのため、エラーハンドリングは省略 |
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 main | |
import ( | |
"archive/tar" | |
"fmt" | |
"io" | |
"os" | |
"time" | |
) |
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
process.stdin.resume(); | |
process.stdin.setEncoding('utf8'); | |
process.stdin.on('data', function(inputData) { | |
//標準入力から引数の取得 | |
var str = inputData.toString(); | |
//標準入力から取得した文字列を改行ごとに分割し、配列に格納 | |
var args = str.split('\n'); | |
//問題「買い物」の例 | |
var price = args[0]; //1行目を取得 |
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.BufferedReader; | |
import java.io.InputStreamReader; | |
public class Main { | |
//初めから1000このアスタリスク用意!!( ´∀` ) | |
//php -r "echo str_repeat('*', 1000);" | |
public static String ASTA = "************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************ |