結果

問題 No.809 かけ算
ユーザー junsuijunsui
提出日時 2019-10-06 14:30:04
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 253 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 39,168 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-18 02:40:53
合計ジャッジ時間 2,541 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cmath>

int main( void ){
	int N;
	if(!scanf( "%d", &N ))
		return -1;
	int lim = std::sqrt(N)+1;
	for(int i = 0; i < lim; i++){
		if (N%i == 0){
			printf("%d, %d\n", i, N%i);
			return 0;
		}
	}
	printf("\n");
	return 0;
}
0