結果

問題 No.2038 Strange Arrange
ユーザー tailstails
提出日時 2022-08-12 23:06:12
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 730 bytes
コンパイル時間 1,012 ms
コンパイル使用メモリ 22,636 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 23:17:58
合計ジャッジ時間 708 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 0 ms
4,348 KB
testcase_02 AC 0 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 0 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:9: warning: implicit declaration of function ‘read’; did you mean ‘rd’? [-Wimplicit-function-declaration]
    7 |         read(0,rbuf,sizeof rbuf);
      |         ^~~~
      |         rd
main.c:9:9: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
    9 |         write(1,"12131214121312151213121412131216121312141213121512131214121312171213121412131215121312141213121612131214121312151213121412131218121312141213121512131214121312161213121412131215121312141213121712131214121312151213121412131216121312141213121512131214121312191213121412131215121312141213121612131214121312151213121412131217121312141213121512131214121312161213121412131215121312141213121812131214121312151213121412131216121312141213121512131214121312171213121412131215121312141213121612131214121312151213",rd());
      |         ^~~~~
main.c:10:9: warning: implicit declaration of function ‘_exit’ [-Wimplicit-function-declaration]
   10 |         _exit(0);
      |         ^~~~~
main.c:10:9: warning: incompatible implicit declaration of built-in function ‘_exit’ [-Wbuiltin-declaration-mismatch]

ソースコード

diff #

#pragma GCC optimize("Ofast")
#pragma GCC target("avx2")

#define rd() ({long _v=0,_c;while(_c=*rp++-48,_c>=0)_v=_v*10+_c;_v;})
int main(){
	char rbuf[64];
	read(0,rbuf,sizeof rbuf);
	char*rp=rbuf;
	write(1,"12131214121312151213121412131216121312141213121512131214121312171213121412131215121312141213121612131214121312151213121412131218121312141213121512131214121312161213121412131215121312141213121712131214121312151213121412131216121312141213121512131214121312191213121412131215121312141213121612131214121312151213121412131217121312141213121512131214121312161213121412131215121312141213121812131214121312151213121412131216121312141213121512131214121312171213121412131215121312141213121612131214121312151213",rd());
	_exit(0);
}
0