結果
| 問題 | No.485 方程式のお勉強 |
| コンテスト | |
| ユーザー |
Justinlam33
|
| 提出日時 | 2017-04-09 01:32:55 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 154 bytes |
| 記録 | |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 27,520 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 00:00:21 |
| 合計ジャッジ時間 | 654 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 7 WA * 6 |
コンパイルメッセージ
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",b/a);}
else if (b%a==0) {printf("%i",a/b);}
else {printf("NO");}
}
Justinlam33