mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 03:31:59 +00:00
667. 游戏时间
https://www.acwing.com/problem/content/submission/code_detail/14060953/
This commit is contained in:
parent
1bb7808029
commit
7dbd0d35af
17
AcWing/667/667.cpp
Normal file
17
AcWing/667/667.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include <iostream>
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
const char endl = '\n';
|
||||
|
||||
int a, b;
|
||||
|
||||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
|
||||
cin >> a >> b;
|
||||
|
||||
cout << "O JOGO DUROU " << b - a + 24 * (a >= b) << " HORA(S)" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user