結果
| 問題 | No.2921 Seated in Classroom |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2024-10-13 00:21:52 |
| 言語 | C90(gcc15) (gcc 15.2.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 645 bytes |
| 記録 | |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 26,420 KB |
| 最終ジャッジ日時 | 2026-02-24 01:21:08 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c: In function 'main':
main.c:8:32: error: expected ';' before '_'
8 | #define repeat(e) for(typeof(e)_=e;_--;)
| ^
main.c:16:9: note: in expansion of macro 'repeat'
16 | repeat(t){
| ^~~~~~
main.c:8:36: error: '_' undeclared (first use in this function)
8 | #define repeat(e) for(typeof(e)_=e;_--;)
| ^
main.c:16:9: note: in expansion of macro 'repeat'
16 | repeat(t){
| ^~~~~~
main.c:8:36: note: each undeclared identifier is reported only once for each function it appears in
8 | #define repeat(e) for(typeof(e)_=e;_--;)
| ^
main.c:16:9: note: in expansion of macro 'repeat'
16 | repeat(t){
| ^~~~~~
ソースコード
#pragma GCC optimize("Ofast")
#pragma GCC target("avx2")
#define rd_init() char*rp=({char*mmap();mmap(0l,1l<<25,1,2,0,0ll);})
#define rd() ({int _v=0,_c;while(_c=*rp++-48,_c>=0)_v=_v*10+_c;_v;})
#define WTHI(v) {unsigned _z=v,_n=0;long _d=0;while(++_n,_d=_d<<8|0x30|_z%10,_z/=10);*(long*)wp=_d;wp+=_n;}
#define wt(v) if(v>=100000000){WTHI(v/10);*wp++=v%10+'0';}else{WTHI(v);}
#define repeat(e) for(typeof(e)_=e;_--;)
char wbuf[1<<25];
int main(){
char*wp=wbuf;
rd_init();
int t=rd();
repeat(t){
int n=rd();
int m=rd();
int a=n+3>>2;
int b=n+m+7>>3;
int z=a>=b?a:b;
wt(z);
*wp++='\n';
}
write(1,wbuf,wp-wbuf);
_exit(0);
}
tails