結果
問題 | No.414 衝動 |
ユーザー |
![]() |
提出日時 | 2016-08-26 22:31:45 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 12 ms / 1,000 ms |
コード長 | 238 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 22,400 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 09:02:34 |
合計ジャッジ時間 | 1,006 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lld", &m); | ~~~~~^~~~~~~~~~~~
ソースコード
#include <stdio.h>int main() {long long int m;scanf("%lld", &m);for(long long int i = 2; i * i <= m; i++) {if(m % i == 0) {printf("%lld %lld\n", i, m / i);return 0;}}printf("%d %lld\n", 1, m);return 0;}