結果
問題 |
No.312 置換処理
|
ユーザー |
![]() |
提出日時 | 2015-12-09 21:55:46 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 180 bytes |
コンパイル時間 | 266 ms |
コンパイル使用メモリ | 23,296 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-15 05:59:39 |
合計ジャッジ時間 | 1,661 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 27 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lld",&a); | ^~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> #include<math.h> int main(void){ long long int a,i,c=0; scanf("%lld",&a); for(i=1;i<=sqrt(a)+1;i++){ if(a%i == 0) c=a/i; } printf("%lld\n",c); return 0; }