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
#include<iostream> | |
int main(void) | |
{ | |
std::cout << "Hello,world!" << std::endl; | |
return 0; | |
} |
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
#include<iostream> | |
using namespace std; | |
int main(void){ | |
int l[10]; | |
char c; | |
double ls, x1, t, v1, v2; | |
while(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
#include <iostream> | |
#include <algorithm> | |
#include <cctype> | |
#include <cstdio> | |
#include <math.h> | |
using namespace std; | |
int main(){ | |
int d[14][14]={0},x,y,t,m=0,z=0; | |
while(scanf("%d,%d,%d",&x,&y,&t)!=EOF){ |
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
#include<iostream> | |
#include<queue> | |
using namespace std; | |
int main(void){ | |
queue<int> a,b,d; | |
int n, m, k; | |
cin >> n; | |
for(int i = 0; i < 2 * n; i++){ | |
d.push(i + 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
#include<iostream> | |
#include<vector> | |
#include<queue> | |
using namespace std; | |
int main(void){ | |
int a,b,c, t, n; | |
while(cin >> a >> b >> c, a + b + c !=0){ | |
vector<int> h; | |
vector<int> p; | |
queue< vector<int> > que; |
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
//AOJ 10000 | |
import std.stdio; | |
void main() | |
{ | |
writeln("Hello World"); | |
} | |
//AOJ 10001 | |
import std.stdio; |
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
function check (inboard, x, y){ | |
var board = inboard; | |
for(var i = 1; i <= x; i++){ | |
for(var j = 1; j <= y; j++){ | |
var dot = 0; | |
var guardman = 0; | |
for(var k = -1; k < 2; k++){ | |
for(var l = -1; l < 2; l++){ | |
if(k == 0 && l == 0) continue; |
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
function Putable(board, x, y, turn){ | |
var count = 0; | |
for(var i = -1; i <= 1; i++){ | |
for(var j = -1; j <= 1; j++){ | |
if(i == 0 && j == 0) continue; | |
if(board[y + i][x + j] == 3 - turn){ | |
var k = i; | |
var l = j; | |
var incount = 0; | |
while(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
#include<stdio.h> | |
#include<string.h> | |
int CheckFront(int, char *); | |
int CheckBack(int, char *); | |
int main(int argc, char *argv[]){ | |
char example[] = {"例:bfc ソースファイル [出力ファイル名]"}; | |
char sourceName[32]; | |
char outName[32] = {"out.txt"}; |
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 std.stdio; | |
void main(){ | |
writeln("Hello, world!"); | |
} |
OlderNewer