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 tm1, ts1, tm2, ts2; cin >> tm1 >> ts1 >> tm2 >> ts2; int dm1, ds1, dm2, ds2; cin >> dm1 >> ds1 >> dm2 >> ds2; int vkupno_tufi = tm1 * 60 + ts1 + tm2 * 60 + ts2; int vkupno_dvojce = dm1 * 60 + ds1 + dm2 * 60 + ds2; if(vkupno_tufi < vkupno_dvojce) { cout << "T" << endl; } else { cout << "D" << endl; } int raz = abs(vkupno_tufi - vkupno_dvojce); cout << (raz / 60) << " " << (raz % 60) << endl; return 0; }
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)