結果
問題 | No.442 和と積 |
ユーザー |
![]() |
提出日時 | 2017-04-01 01:23:13 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 217 bytes |
コンパイル時間 | 408 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-04 23:03:43 |
合計ジャッジ時間 | 988 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
コンパイルメッセージ
main.c:9:1: warning: return type defaults to 'int' [-Wimplicit-int] 9 | main(){ | ^~~~
ソースコード
#include <stdio.h>long g(long a,long b) {long c;while(a%b){c=a%b;a=b;b=c;}return b;}main(){long a,b,c;scanf("%ld%ld",&a,&b);c=g(a,b);printf("%ld",c*g(a/c+b/c,c));}