結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
hamray
|
| 提出日時 | 2017-11-16 00:41:11 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 345 bytes |
| コンパイル時間 | 571 ms |
| コンパイル使用メモリ | 71,084 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 04:14:12 |
| 合計ジャッジ時間 | 1,523 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:12:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | scanf("%d:%d", &H, &M);
| ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
#include<algorithm>
#include<vector>
#include<math.h>
#include<stack>
using namespace std;
int H, M;
int main(){
scanf("%d:%d", &H, &M);
int m = H * 60 + M;
m = (m + 5) % (24 * 60);
printf("%02d:%02d\n", m / 60, m % 60);
return 0;
}
hamray