結果
| 問題 | No.338 アンケート機能 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-18 05:01:25 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 159 bytes |
| 記録 | |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 29,512 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-08 16:14:15 |
| 合計ジャッジ時間 | 1,032 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 28 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | i,j;a=999;main(A,B){
| ^
main.c:1:5: warning: data definition has no type or storage class
1 | i,j;a=999;main(A,B){
| ^
main.c: In function ‘main’:
main.c:2:13: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
2 | for(scanf("%d%d",&A,&B);i<=500;i++)for(j=0;j<=500;j++)
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | i,j;a=999;main(A,B){
main.c:4:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
4 | printf("%d",a);
| ^~~~~~
main.c:4:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
i,j;a=999;main(A,B){
for(scanf("%d%d",&A,&B);i<=500;i++)for(j=0;j<=500;j++)
A==round(1e2*i/(i+j))&&B==round(1e2*j/(i+j))&&i+j<a&&(a=i+j);
printf("%d",a);
}