結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2020-10-23 17:10:49 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 236 bytes |
| コンパイル時間 | 283 ms |
| コンパイル使用メモリ | 29,440 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-21 10:18:43 |
| 合計ジャッジ時間 | 1,576 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
コンパイルメッセージ
main.c:6:1: warning: return type defaults to 'int' [-Wimplicit-int]
6 | main(){
| ^~~~
main.c: In function 'main':
main.c:16:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
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")
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:16:9: note: include '<stdio.h>' or provide a declaration of 'printf'
ソースコード
#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