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

洛谷 P1425 小鱼的游泳时间 更多...

#include <luogu.h>

静态 Public 成员函数

static int main (istream &cin, ostream &cout)
 

详细描述

洛谷 P1425 小鱼的游泳时间

在文件 luogu.h70 行定义.

成员函数说明

◆ main()

int luogu::P1425::main ( istream &  cin,
ostream &  cout 
)
static

在文件 luogu.cpp206 行定义.

206 {
207 int a;
208 int b;
209 int c;
210 int d;
211 cin >> a >> b >> c >> d;
212 const int diff = (c - a) * 60 + d - b;
213 cout << diff / 60 << " " << diff % 60;
214 return 0;
215 }

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


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