Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

djyugg djyugg

🎯
Focusing
View GitHub Profile
View poh04_java03.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// 自分の得意な言語で
// Let's チャレンジ!!
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
View poh04_java01.java
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// 自分の得意な言語で
// Let's チャレンジ!!
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int inputNumber = Integer.parseInt(br.readLine());
View poh04_java02.java
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws Exception {
// 自分の得意な言語で
// Let's チャレンジ!!
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
View powershell4_install.ps1
# powershell update
$powershell4_url = "http://download.microsoft.com/download/3/D/6/3D61D262-8549-4769-A660-230B67E15B25/Windows6.1-KB2819745-x64-MultiPkg.msu"
$download_directory = Split-Path $myInvocation.MyCommand.path
$web_client = New-Object System.Net.WebClient
$uri = New-Object System.Uri($powershell4_url)
$download_file = Split-Path $uri.AbsolutePath -Leaf
$download_path = (Join-Path $download_directory $download_file)
$web_client.DownloadFile($uri, $download_path)
View script_execution_policy_change.bat
rem Powershellスクリプト(.ps1)実行権限をRestrictedに変更
powershell -Command Set-ExecutionPolicy restricted
View poh05_2.js
var readline = require('readline').createInterface(process.stdin, process.stdout);
var inputs = [];
var ONE_WEEK_DAYS = 7;
readline.on('line', function (line) {
inputs.push(+line);
});
var createWeekInput = function (inputs) {
View poh05_1.js
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
var displayCharacters = Array.prototype.filter.call(chunk, function (s, i) {
return (i % 2) === 0;
});
console.log(displayCharacters.join().replace(/,/g, ""));
View poh05_4.js
var readline = require('readline').createInterface(process.stdin, process.stdout);
var inputs = [];
function BombApplication(inputs) {
var appProperties = inputs.splice(0, 1).toString().split(' ');
this.lineNum = +appProperties[0];
this.lineLength = +appProperties[1];
this.lines = [];
View poh05_1.php
<?php
$inputLines = fgets(STDIN);
for ($i = 0; $i < mb_strlen($inputLines); $i += 2) {
echo substr($inputLines, $i, 1);
}
View poh05_2.php
<?php
class Sales_Sum
{
const WEEK_DAYS = 7;
private $_weekNum;
private $_salesOfDays = [0, 0, 0, 0, 0, 0, 0];
function __construct($inputDays)
{