結果
問題 |
No.312 置換処理
|
ユーザー |
![]() |
提出日時 | 2016-04-03 01:00:06 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 160 bytes |
コンパイル時間 | 462 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 28,584 KB |
最終ジャッジ日時 | 2024-10-02 12:31:49 |
合計ジャッジ時間 | 3,878 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 TLE * 1 -- * 43 |
コンパイルメッセージ
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("%ld",&n); | ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ long int n; long int i; scanf("%ld",&n); for(i=3;i<n;i++){ if(n%i==0)break; } printf("%ld\n",i); return 0; }