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

AOJ Volume0-0014

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

AOJ Volume0-0013

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0013&lang=jp #include <iostream> #include <vector> using namespace std; int main (int argc, const char * argv[]) { int read = 0; vector<int> num; while (cin >> read) { if(read == 0) { //pop cout << num[num</int></vector></iostream>…