結果
| 問題 |
No.408 五輪ピック
|
| コンテスト | |
| ユーザー |
FF256grhy
|
| 提出日時 | 2017-01-23 07:52:23 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 5,000 ms |
| コード長 | 337 bytes |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 05:46:04 |
| 合計ジャッジ時間 | 1,519 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 |
コンパイルメッセージ
main.c:2:50: warning: return type defaults to ‘int’ [-Wimplicit-int]
2 | int n,m,a[500000],b[50000],c[20000],d[20000],e,f;main(i){scanf("%d%d",&n,&m);I scanf("%d%d",a+i,b+i),c[--b[i]]|=!--a[i],c[a[i]]|=!b[i];I{if(a[i]*c[b[i]])d[a[i]]=d[a[i]]?--f:b[i];if(b[i]*c[a[i]])d[b[i]]=d[b[i]]?--f:a[i];}I e|=d[a[i]]&&d[b[i]]&&d[a[i]]-b[i]&&d[b[i]]-a[i]&&d[a[i]]-d[b[i]];i=!puts(e?"YES":"NO");}
| ^~~~
main.c: In function ‘main’:
main.c:2:50: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:2:58: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
2 | int n,m,a[500000],b[50000],c[20000],d[20000],e,f;main(i){scanf("%d%d",&n,&m);I scanf("%d%d",a+i,b+i),c[--b[i]]|=!--a[i],c[a[i]]|=!b[i];I{if(a[i]*c[b[i]])d[a[i]]=d[a[i]]?--f:b[i];if(b[i]*c[a[i]])d[b[i]]=d[b[i]]?--f:a[i];}I e|=d[a[i]]&&d[b[i]]&&d[a[i]]-b[i]&&d[b[i]]-a[i]&&d[a[i]]-d[b[i]];i=!puts(e?"YES":"NO");}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | #define I for(i=0;i<m;i++)
main.c:2:58: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
2 | int n,m,a[500000],b[50000],c[20000],d[20000],e,f;main(i){scanf("%d%d",&n,&m);I scanf("%d%d",a+i,b+i),c[--b[i]]|=!--a[i],c[a[i]]|=!b[i];I{if(a[i]*c[b[i]])d[a[i]]=d[a[i]]?--f:b[i];if(b[i]*c[a[i]])d[b[i]]=d[b[i]]?--f:a[i];}I e|=d[a[i]]&&d[b[i]]&&d[a[i]]-b[i]&&d[b[i]]-a[i]&&d[a[i]]-d[b[i]];i=!puts(e?"YES":"NO");}
| ^~~~~
main.c:2:58: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:2:291: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
2 | int n,m,a[500000],b[50000],c[20000],d[20000],e,f;main(i){scanf("%d%d",&n,&m);I scanf("%d%d",a+i,b+
ソースコード
#define I for(i=0;i<m;i++)
int n,m,a[500000],b[50000],c[20000],d[20000],e,f;main(i){scanf("%d%d",&n,&m);I scanf("%d%d",a+i,b+i),c[--b[i]]|=!--a[i],c[a[i]]|=!b[i];I{if(a[i]*c[b[i]])d[a[i]]=d[a[i]]?--f:b[i];if(b[i]*c[a[i]])d[b[i]]=d[b[i]]?--f:a[i];}I e|=d[a[i]]&&d[b[i]]&&d[a[i]]-b[i]&&d[b[i]]-a[i]&&d[a[i]]-d[b[i]];i=!puts(e?"YES":"NO");}
FF256grhy