結果
問題 |
No.809 かけ算
|
ユーザー |
![]() |
提出日時 | 2019-06-19 01:41:41 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 194 bytes |
コンパイル時間 | 116 ms |
コンパイル使用メモリ | 22,272 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 07:57:16 |
合計ジャッジ時間 | 1,082 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 WA * 3 |
コンパイルメッセージ
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); a=2; if(answer%a==0){ b=answer/a; }else{ a=3; b=answer/a; } printf("%d %d",a,b); return 0; }