結果
| 問題 |
No.809 かけ算
|
| コンテスト | |
| ユーザー |
matecha
|
| 提出日時 | 2019-05-09 15:53:05 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 279 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 22,400 KB |
| 実行使用メモリ | 13,756 KB |
| 最終ジャッジ日時 | 2024-07-02 00:49:44 |
| 合計ジャッジ時間 | 4,441 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 4 TLE * 1 -- * 1 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%d",&c);
| ~~~~~^~~~~~~~~
ソースコード
#include <stdio.h>
int main(void){
printf("C: 1 <= C <= 10^10\n");
int c ;
scanf("%d",&c);
for(int i = 2; i <= c; i++){
int number = c % i;
if(number == 0){
printf("%d * %d \n",i,c/i);
break;
}
}
}
matecha