結果

問題 No.526 フィボナッチ数列の第N項をMで割った余りを求める
ユーザー ruru
提出日時 2017-06-12 13:58:09
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 218 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 55,716 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-24 16:43:32
合計ジャッジ時間 961 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 12
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:7:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    7 | main(){
      | ^~~~

ソースコード

diff #

#include <iostream>
#include<string>

using namespace std;


main(){
	int h,m;
	char f;
	
	cin >> h >> f >>m;
	
	h=(h+m/55)%24;
	m=(m+5)%60;
	
	cout<<h/10<<h%10<<":"<<m/10<<m%10<<endl;
	return 0;
}

0