結果
問題 |
No.442 和と積
|
ユーザー |
![]() |
提出日時 | 2016-12-09 02:09:26 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-28 16:06:45 |
合計ジャッジ時間 | 919 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 7 |
コンパイルメッセージ
main.c: In function ‘run’: main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%lld%lld",&a,&b); | ^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> typedef long long int ln; void run(void){ ln a,b; scanf("%lld%lld",&a,&b); ln r=a%b; while(r>0){ a=b; b=r; r=a%b; } printf("%lld\n",b); return; } int main(void){ run(); return 0; }