結果
問題 | No.414 衝動 |
ユーザー |
![]() |
提出日時 | 2016-08-26 22:26:19 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 11 ms / 1,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 724 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 09:01:15 |
合計ジャッジ時間 | 1,518 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:4:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%lld",&M); | ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>int main(){long long int M;scanf("%lld",&M);long long int i;for(i=2;i*i<=M;i++){if(M%i==0){printf("%lld %lld\n",i,M/i);return 0;}}printf("1 %lld\n",M);return 0;}