結果
| 問題 |
No.2614 Delete ABC
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2024-01-26 21:30:17 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 675 bytes |
| コンパイル時間 | 599 ms |
| コンパイル使用メモリ | 22,784 KB |
| 実行使用メモリ | 6,940 KB |
| 最終ジャッジ日時 | 2024-09-28 07:42:09 |
| 合計ジャッジ時間 | 979 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:15:17: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
15 | strcpy(wp,"ABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABACBC\n"+300-n*3);
| ^~~~~~
main.c:1:1: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
+++ |+#include <string.h>
1 | #pragma GCC optimize("Ofast")
main.c:15:17: warning: incompatible implicit declaration of built-in function ‘strcpy’ [-Wbuiltin-declaration-mismatch]
15 | strcpy(wp,"ABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABACBC\n"+300-n*3);
| ^~~~~~
main.c:15:17: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
main.c:18:9: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
18 | write(1,wbuf,wp-wbuf);
| ^~~~~
main.c:19:9: warning: implicit declaration of function ‘_exit’ [-Wimplicit-function-declaration]
19 | _exit(0);
| ^~~~~
main.c:19:9: warning: incompatible implicit declaration of built-in function ‘_exit’ [-Wbuiltin-declaration-mismatch]
ソースコード
#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;})
char wbuf[1<<25];
int main(){
rd_init();
char*wp=wbuf;
int t=rd();
while(t--){
int n=rd();
strcpy(wp,"ABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABACBC\n"+300-n*3);
wp+=n*3+1;
}
write(1,wbuf,wp-wbuf);
_exit(0);
}
tails