結果
問題 |
No.485 方程式のお勉強
|
ユーザー |
![]() |
提出日時 | 2017-04-09 01:47:33 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 154 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 00:01:09 |
合計ジャッジ時間 | 869 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 WA * 2 |
コンパイルメッセージ
main.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int] 3 | main(void){ | ^~~~
ソースコード
#include <stdio.h> main(void){ int a,b; scanf("%i %i",&a,&b); if (a%b==0) {printf("%i",a/b);} else if (b%a==0) {printf("%i",b/a);} else {printf("NO");} }