結果
問題 | No.1468 Colourful Pastel |
ユーザー |
![]() |
提出日時 | 2021-04-04 17:17:22 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 257 bytes |
コンパイル時間 | 371 ms |
コンパイル使用メモリ | 28,288 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-27 22:51:19 |
合計ジャッジ時間 | 1,325 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
コンパイルメッセージ
main.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int] 6 | main(){ | ^~~~ main.c: In function 'main': main.c:18:25: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 18 | putchar(*a++); | ^~~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar' +++ |+#include <stdio.h> 1 | #pragma GCC optimize("Ofast")
ソースコード
#pragma GCC optimize("Ofast") #pragma GCC target("avx2") char*mmap(); main(){ char*rp=mmap(0l,1l<<28,1,2,0,0ll); while(*rp++!=10); char*a=rp; while(*rp++!=10); char*b=rp; while(*b){ if(*a==*b){ ++a; ++b; }else{ putchar(*a++); } } }