結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
Bantako
|
| 提出日時 | 2017-07-16 21:35:52 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 256 ms |
| コンパイル使用メモリ | 22,272 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-08 04:32:21 |
| 合計ジャッジ時間 | 3,731 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 -- * 43 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
2 | main(){
| ^~~~
main.cpp: In function ‘int main()’:
main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%lld",&N);
| ~~~~~^~~~~~~~~~~
ソースコード
#include<stdio.h>
main(){
long long N;
scanf("%lld",&N);
for(int i = 3;i*i <= N;i++){
if(N%i == 0){
printf("%d\n",i);
return 0;
}
}
printf("%lld\n",N);
}
Bantako