Skip to content

Instantly share code, notes, and snippets.

View rainbow23's full-sized avatar
🏠
Working from home

rainbow23 rainbow23

🏠
Working from home
View GitHub Profile
@rainbow23
rainbow23 / ip check c#
Last active May 12, 2017 18:20
paiza mondai
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IppAddrCheck
{
class Program
{
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <pthread.h>
void error(char *msg)
{
fprintf(stderr, "%s:%s\n", msg, strerror(errno));
using System;
using System.Collections.Generic;
public class Hello{
public static void Main(){
// 自分の得意な言語で
// Let's チャレンジ!!
//machine number & sweets
string machineAndSweets = System.Console.ReadLine();
#include <stdio.h>
#include <string.h>
int main(void){
// 自分の得意な言語で
// Let's チャレンジ!!
char line[1000];
fgets(line, sizeof(line), stdin);
char *pLine;// = NULL;
@rainbow23
rainbow23 / hanoi
Last active May 30, 2017 15:42
ハノイの塔
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
void hanoi(int n, int from, int to, int work);
void initialize(int num);
void release();
typedef struct link
{
@rainbow23
rainbow23 / paiza
Created May 28, 2017 16:37
C037:アニメの日時 再チャレンジ採点結果
using System;
public class Hello{
public static void Main(){
// 自分の得意な言語で
// Let's チャレンジ!!
var line = System.Console.ReadLine();
string[] buff = line.Split(' ');
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
// 自分の得意な言語で
// Let's チャレンジ!!
char str[100];
fgets(str, sizeof(str), stdin);
@rainbow23
rainbow23 / paiza
Created May 29, 2017 20:57
C036:[もし女コラボ問題]犬ぞりトーナメント
using System;
public class Hello{
public static void Main(){
// 自分の得意な言語で
// Let's チャレンジ!!
String[] gameMatchNum = new String[2];
for(int ci =0; ci < 2; ci++)
{
gameMatchNum[ci] = System.Console.ReadLine();
@rainbow23
rainbow23 / C035:試験の合格判定
Created May 30, 2017 14:22
paiza テストケースすべて通過
using System;
public class Hello{
public static void Main(){
// 自分の得意な言語で
// Let's チャレンジ!!
var allExaminee = System.Console.ReadLine();
int allExamineeNum = Int32.Parse(allExaminee);
@rainbow23
rainbow23 / paiza C032:お得な買い物
Last active June 11, 2017 14:42
paiza testcase失敗している
using System;
namespace kaimono
{
public class Kaimono2
{
public int kind;
public int price;
public Kaimono2(int kind, int price)
{