結果
問題 |
No.312 置換処理
|
ユーザー |
![]() |
提出日時 | 2015-12-09 21:45:47 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 202 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 13,760 KB |
最終ジャッジ日時 | 2024-09-15 05:59:34 |
合計ジャッジ時間 | 3,469 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 TLE * 1 -- * 43 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%lld",&a); | ^~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ long long int a,i,c; scanf("%lld",&a); for(i=3;i<=a/2;i+=2){ if(a%i == 0){ c=1;break; } } if(c==1)printf("%lld\n",i); else printf("%lld\n",a); return 0; }