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; int tm2, ts2; int dm1, ds1; int dm2, ds2; cin >> tm1 >> ts1; cin >> tm2 >> ts2; cin >> dm1 >> ds1; cin >> dm2 >> ds2; int tufi = (tm1 * 60) + ts1 + (tm2 * 60) + ts2; int dvojce = (dm1 * 60) + ds1 + (dm2 * 60) + ds2; int razlika; if(tufi < dvojce) { cout << "T" << endl; razlika = dvojce - tufi; } else { cout << "D" << endl; razlika = tufi - dvojce; } int minuti = razlika / 60; int sekundi = razlika % 60; cout << minuti << endl; cout << sekundi << 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)