結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-09 02:23:07 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 1,000 ms |
| + 819µs | |
| コード長 | 149 bytes |
| 記録 | |
| コンパイル時間 | 41 ms |
| コンパイル使用メモリ | 28,544 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-24 01:34:11 |
| 合計ジャッジ時間 | 1,613 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | i,n,m,q;main(p){for(gets(&q);~scanf("%d%d",&p,&q);n=m<p?i:n,m=m<p?p:m)p-=q*30000,i++;q=m>499999;puts(q?"YES":"NO");for(p=6;q&&p--;printf("%d\n",n));}
| ^
main.c: In function ‘main’:
main.c:1:31: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | i,n,m,q;main(p){for(gets(&q);~scanf("%d%d",&p,&q);n=m<p?i:n,m=m<p?p:m)p-=q*30000,i++;q=m>499999;puts(q?"YES":"NO");for(p=6;q&&p--;printf("%d\n",n));}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | i,n,m,q;main(p){for(gets(&q);~scanf("%d%d",&p,&q);n=m<p?i:n,m=m<p?p:m)p-=q*30000,i++;q=m>499999;puts(q?"YES":"NO");for(p=6;q&&p--;printf("%d\n",n));}
main.c:1:131: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | i,n,m,q;main(p){for(gets(&q);~scanf("%d%d",&p,&q);n=m<p?i:n,m=m<p?p:m)p-=q*30000,i++;q=m>499999;puts(q?"YES":"NO");for(p=6;q&&p--;printf("%d\n",n));}
| ^~~~~~
main.c:1:131: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
/usr/bin/ld: /tmp/cc9khVqZ.o: in function `main':
main.c:(.text.startup+0x29): 警告: the `gets' function is dangerous and should not be used.
ソースコード
i,n,m,q;main(p){for(gets(&q);~scanf("%d%d",&p,&q);n=m<p?i:n,m=m<p?p:m)p-=q*30000,i++;q=m>499999;puts(q?"YES":"NO");for(p=6;q&&p--;printf("%d\n",n));}
testestest