Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
#include
#include
#include
#include
#include
using namespace std; int gcd(int a, int b) { // bitno e A da e pogolemiot broj, a B da e pomaliot broj if(a < b) { swap(a, b); } while(b != 0) { int tmp = a; a = b; b = tmp % b; } return a; } int main() { cout << gcd(9, 40) << endl; cout << gcd(50, 100) << endl; return 0; } /* 10 9 1 6 1 9 1 10 2 6 2 7 3 7 4 8 4 9 5 10 */
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)