2011-11-23から1日間の記事一覧
ゴリ押ししました。掛け算何回もやっているので無駄が多いと思います。 #include <iostream> #include <algorithm> int ctoi(char c){ return (int)c - '0'; } int main(){ std::string n = "7316717653133062491922511967442657474235534919493496983520312774506326239578318016</algorithm></iostream>…