結果

問題 No.312 置換処理
ユーザー FF256grhy
提出日時 2015-12-05 21:45:23
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 179 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 22,656 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-14 14:31:07
合計ジャッジ時間 3,686 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 TLE * 1 -- * 43
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%lld", &n);
      |         ~~~~~^~~~~~~~~~~~

ソースコード

diff #

// TLE

#include <stdio.h>

int main(void) {
	long long int n, i;
	scanf("%lld", &n);
	for(i = 3; i <= n; i++) {
		if(n % i == 0) { break; }
	}
	printf("%lld\n", i);
	return 0;
}
0