結果
| 問題 | No.1139 Slime Race |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2021-02-05 17:42:18 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 302 bytes |
| 記録 | |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 29,764 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-08 16:25:05 |
| 合計ジャッジ時間 | 1,023 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 22 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:17:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
17 | printf("%d",(d-1)/s+1);
| ^~~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+++ |+#include <stdio.h>
1 | #pragma GCC optimize("Ofast")
main.c:17:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
17 | printf("%d",(d-1)/s+1);
| ~^ ~~~~~~~~~
| | |
| int long int
| %ld
ソースコード
#pragma GCC optimize("Ofast")
#pragma GCC target("avx2")
char*mmap();
#define RD(v) int v=0;{int _c;while(_c=*rp++-48,_c>=0)v=v*10+_c;}
main(){
char*rp=mmap(0l,1l<<28,1,2,0,0ll);
while(*rp++!=32);
RD(d);
while(*rp++!=10);
long s=0;
do{
RD(v);
s+=v;
}while(*rp);
printf("%d",(d-1)/s+1);
}
tails