結果
問題 | No.414 衝動 |
ユーザー |
![]() |
提出日時 | 2017-02-02 10:45:22 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-24 02:30:58 |
合計ジャッジ時間 | 7,407 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 TLE * 3 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%lld", &m); | ^~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { long long int m, i; scanf("%lld", &m); for(i = 2;i < m;i++){ if(m % i == 0){ printf("%lld %lld\n", i, m / i); return 0; } } printf("1 %lld\n", m); return 0; }