結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
takatowin
|
| 提出日時 | 2017-01-11 00:41:58 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 543 ms |
| コンパイル使用メモリ | 22,400 KB |
| 実行使用メモリ | 15,312 KB |
| 最終ジャッジ日時 | 2024-12-18 01:06:37 |
| 合計ジャッジ時間 | 23,075 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 38 TLE * 7 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%lf",&temp);
| ^~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
#include<math.h>
int main(void){
double temp,i;
scanf("%lf",&temp);
for(i=3;i<=temp;i+=1){
if(fmod(temp,i)==0){
printf("%.lf\n",i);
break;
}
}
return 0;
}
takatowin