結果
問題 |
No.809 かけ算
|
ユーザー |
![]() |
提出日時 | 2019-06-19 01:52:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 22,400 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-11-30 07:57:36 |
合計ジャッジ時間 | 4,094 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 WA * 1 TLE * 1 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&answer); | ~~~~~^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ int a,b,answer; scanf("%d",&answer); for(int i=2;i<=answer;i++){ if(answer%i==0){ a=i; b=answer/a; break; } } printf("%d %d",a,b); return 0; }