夢追い人

"It takes a dreamer to make a dream come true."―Vincent Willem van Gogh

天下一のやつ

一応はっとく

A

#include <cstdio>
typedef long long ll;
int n;
ll usa[50];
int main() {
    scanf("%d",&n);
    // n-2に生まれているだけ増える
    usa[0]=usa[1]=1;
    for (int i=2; i<=45; i++) {
        usa[i]=usa[i-1]+usa[i-2];
    }
    printf("%lld\n",usa[n]);
}

B

#include <iostream>
#include <vector>
using namespace std;
vector<string> res;
string str;
int main() {
    while (cin>>str) res.push_back(str);
    for (int i=0; i<res.size(); i++) {
        if (i!=0) cout<<",";
        cout<<res[i];
    }
    cout<<endl;
}

C

こんどやる