Last active
May 20, 2017 11:48
-
-
Save 27Cobalter/a412a22170d9d4b9226e3199827cfd59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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