へんてこのブログ

日々気づいたことや、最近やっていることを書いています

2012-01-13から1日間の記事一覧

AOJ Volume22-2205

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2205 #include <iostream> #include <vector> using namespace std; int main (int argc, const char * argv[]) { int n; while (cin >> n) { if (n == 0) { //終了 break; } vector<string> tousen; vector<int> sho; vector<string> hav</string></int></string></vector></iostream>…

AOJ Volume2-0229

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0229 #include <iostream> using namespace std; int main (int argc, const char * argv[]) { int read; int read_a[6]; while (cin >> read) { read_a[0] = read; for (int i=1; i < 6; i++) { cin >> rea</iostream>…

AOJ Volume100-10008

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=10008 #include <iostream> #include <vector> using namespace std; int main (int argc, char * const argv[]) { // insert code here... float a,b; while (cin >> a >> b) { int d = a / b; int r = int(a)% int</vector></iostream>…

AOJ Volume0-0011

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0011&lang=jp #include <iostream> #include <vector> using namespace std; int main (int argc, char * const argv[]) { // insert code here... int w; while (cin >> w) { if (w == 0) { break; } int r[w]; for</vector></iostream>…

AOJ Volume20-2001

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2001 #include <iostream> #include <vector> using namespace std; int main (int argc, char * const argv[]) { // insert code here... int n; while (cin >> n) { if (n == 0) { break; } //入力 int m,a; cin ></vector></iostream>…

AOJ Volume20-2000

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2000 #include <iostream> #include <string> using namespace std; int main (int argc, char * const argv[]) { // insert code here... int N; while (cin >> N) { if (N == 0) { break; } int h_x[N]; int h_y[N</string></iostream>…