結果

問題 No.296 n度寝
ユーザー mukadenodaioumukadenodaiou
提出日時 2018-03-22 01:30:12
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 973 bytes
コンパイル時間 642 ms
コンパイル使用メモリ 95,316 KB
最終ジャッジ日時 2024-04-27 02:32:32
合計ジャッジ時間 961 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp:24:21: error: 'numeric_limits' is not a member of 'std'
   24 | const ll INF = std::numeric_limits<long long>::max();
      |                     ^~~~~~~~~~~~~~
main.cpp:24:36: error: expected primary-expression before 'long'
   24 | const ll INF = std::numeric_limits<long long>::max();
      |                                    ^~~~

ソースコード

diff #

# include <iostream>
# include <algorithm>
# include <vector>
# include <string>
# include <set>
# include <map>
# include <cmath>
# include <iomanip>
# include <functional>
# include <utility>
# include <stack>
# include <queue>
# include <list>
# include <bitset>
# include <complex>
#include<limits.h>
#include<unordered_map>
#include<unordered_set>
#include<deque>
#include<cstdio>
using namespace std;
typedef long long int ll;
const int N = 1000000;
const ll INF = std::numeric_limits<long long>::max();
#define rep(i,n) for(ll i=(ll)0;i<(ll)n;++i)
#define srep(i,s) rep(i,(ll)s.size())
#define ALL(x) x.begin(),x.end()
#define pp pair<ll,ll>
#define fi first
#define se second
#define sz size
const ll mod = 1000000007;
string YN(bool b) { return(b ? "YES" : "NO"); }
string yn(bool b) { return(b ? "Yes" : "No"); }
ll n, h, m, b;
int main() {
	cin >> n >> h >> m >> b;
	m += (n - 1)*b;
	h += m / 60;
	m %= 60;
	h %= 24;
	cout << h << "\n" << m << endl;
	return 0;
}
0