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
using namespace std; int main() { int a, b; cin >> a >> b; int promeni = 0; for(int i = 0; i < 10; i++){ b += 1; if(b == 60) { promeni += 2; b = 0; if(a == 23) { a = 0; promeni += 2; } else if(a == 9) { promeni += 2; a += 1; } else if(a == 19){ promeni += 2; a += 1; } else { promeni += 1; a += 1; } } else if((b - 1) % 10 == 9) { promeni += 2; } else { promeni += 1; } } cout << promeni << endl; return 0; } // 19 --> 20
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)