結果
問題 | No.8008 某マヨネーズの網目柄 |
ユーザー |
![]() |
提出日時 | 2017-04-25 17:37:47 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 201 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 08:57:53 |
合計ジャッジ時間 | 937 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
main.c: In function ‘run’: main.c:5:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d%d",&n,&m); | ^~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> void run(void){ int n,m; scanf("%d%d",&n,&m); int r=n%m; while(r>0){ n=m; m=r; r=n%m; } printf("%d\n",m); return; } int main(void){ run(); return 0; }