Skip to main content
improved to community standard
Source Link

C++ (gcc)C++ (gcc)

Probably not the fastest, but wanted to give it a try:

#include <iostream>

std::string a;

int main(){
    std::cin >> a;
    if(a == "draw!") std::cout << "bang!";
}

Compiled using g++ -Ofast bang.cpp.

C++ (gcc)

Probably not the fastest, but wanted to give it a try:

#include <iostream>

std::string a;

int main(){
    std::cin >> a;
    if(a == "draw!") std::cout << "bang!";
}

Compiled using g++ -Ofast bang.cpp.

C++ (gcc)

Probably not the fastest, but wanted to give it a try:

#include <iostream>

std::string a;

int main(){
    std::cin >> a;
    if(a == "draw!") std::cout << "bang!";
}

Compiled using g++ -Ofast bang.cpp.

Source Link

C++ (gcc)

Probably not the fastest, but wanted to give it a try:

#include <iostream>

std::string a;

int main(){
    std::cin >> a;
    if(a == "draw!") std::cout << "bang!";
}

Compiled using g++ -Ofast bang.cpp.