結果

問題 No.525 二度寝の季節
ユーザー koma3tabi3
提出日時 2018-03-25 02:18:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 483 ms
コンパイル使用メモリ 61,356 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-25 04:34:53
合計ジャッジ時間 1,753 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 13 WA * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |         scanf("%d:%d",&a,&b);
      |         ~~~~~^~~~~~~~~~~~~~~

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <functional>
#include <stdio.h>
using namespace std;

int main()
{
	int a,b;
	scanf("%d:%d",&a,&b);
	b+=5;
	if(b>=60)
	{
		a++;
		b-=60;
	}
	else
		if(b>=10)cout<<a<<":"<<b<<endl;
		else{cout<<a<<":0"<<b<<endl;} 
	fflush (stdin);
	getchar();
	return 0;

}
0