Skip to content

Instantly share code, notes, and snippets.

@27Cobalter
Last active May 20, 2017 11:48
Show Gist options
  • Save 27Cobalter/a412a22170d9d4b9226e3199827cfd59 to your computer and use it in GitHub Desktop.
Save 27Cobalter/a412a22170d9d4b9226e3199827cfd59 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
int main() {
std::cout << "N = ";
int var;
std::cin >> var;
for (int i = 1; i <= var; i++)
std::cout << i << (i % 3 == 0 || std::to_string(i).find("3") != std::string::npos ? "アホ" : "") << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment