problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
acwing::acwing667类 参考

AcWing 667. 游戏时间 更多...

#include <acwing.h>

静态 Public 成员函数

static int main (istream &, ostream &)
 

详细描述

AcWing 667. 游戏时间

在文件 acwing.h444 行定义.

成员函数说明

◆ main()

int acwing::acwing667::main ( istream &  cin,
ostream &  cout 
)
static

在文件 acwing.cpp1194 行定义.

1194 {
1195 unsigned int a;
1196 unsigned int b;
1197 cin >> a >> b;
1198 int t = (b - a + 24) % 24;
1199 if(t == 0) {
1200 t = 24;
1201 }
1202 cout << "O JOGO DUROU " << t << " HORA(S)";
1203 return 0;
1204 }

被这些函数引用 acwing::TEST().


该类的文档由以下文件生成: