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