Skip to content

Instantly share code, notes, and snippets.

ふつうにおすすめのところ

  • 平和記念公園
  • おきなわワールド
  • A&W(ルートビアは飲み放題)
  • ブルーシール

個人的におすすめしたいところを書きます。

@pndcat
pndcat / minumum _edge_cover.als
Created September 18, 2015 19:14
Alloyで最小点カバー問題の反例を見つける
open util/ordering [Graph]
sig Graph
{
nodes: set Node,
edge: nodes -> nodes,
max_node: nodes,
edge_d: Node -> Node
}
{
int main(void)
{
string str;
string exam;
int n;
int ans;
int interval;
cin >> n;
cin >> exam;
int main(void)
{
int n;
int sum[203];
int num[203][3]; // [何人目][何番目のゲーム]
int point[104];
int input;
cin >> n;
int main(void)
{
string str;
string exam;
int n;
int ans;
int interval;
cin >> n;
cin >> exam;
class FauxPalindromes {
public:
string classifyIt(string word) {
bool res = true;
string str;
for (int i = 0; i < word.size() / 2; i++){
if (word[i] != word[word.size() - i - 1]){
res = false;
@pndcat
pndcat / pck4.c
Created September 8, 2012 11:42
パソコン甲子園2012予選の問題4
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void)
{
char str[10];
char maxc;
char minc;
int maxt;
@pndcat
pndcat / pck2.c
Created September 8, 2012 11:36
パソコン甲子園2012予選の問題2
#include <stdio.h>
int main(void)
{
int b1, b2, b3;
scanf("%d %d %d", &b1, &b2, &b3);
if (b1 == 1 && b2 == 1){
printf("Open\n");
@pndcat
pndcat / pck1.c
Created September 8, 2012 11:31
パソコン甲子園2012予選の問題1
#include <stdio.h>
int main(void)
{
int sum;
int i;
int input;
sum = 0;
for (i = 0; i < 10; i++){