結果
| 問題 | No.99 ジャンピング駒 |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2020-10-23 17:10:49 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 29,892 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:22:10 |
| 合計ジャッジ時間 | 692 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 6 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:16:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
16 | printf("%d",a<0?-a:a);
| ^~~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+++ |+#include <stdio.h>
1 | #pragma GCC optimize("Ofast")
ソースコード
#pragma GCC optimize("Ofast")
#pragma GCC target("avx2")
char*mmap();
main(){
int a=0,b=0,c;
char*r=mmap(0l,1280l*1024,1,2,0,0l);
while(*r++>=45);
while(c=*r++){
if(c<45){
a+=b&1?1:-1;
}
b=c;
}
printf("%d",a<0?-a:a);
}
tails