結果
| 問題 | No.999 てん vs. ほむ |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2020-10-22 15:28:21 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 102 ms |
| コンパイル使用メモリ | 29,384 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-08 16:22:05 |
| 合計ジャッジ時間 | 1,000 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 20 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:20:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
20 | printf("%ld",b*2-a);
| ^~~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+++ |+#include <stdio.h>
1 | char rbuf[2000000];
ソースコード
char rbuf[2000000];
main(){
int x,y,c;
long a=0,b=0;
char*r;
read(0,r=rbuf,sizeof rbuf);
while(*r++-48>=0);
while(*r){
x=0;
while(c=*r++-48,c>=0){
x=x*10+c;
}
y=0;
while(c=*r++-48,c>=0){
y=y*10+c;
}
a+=x-y;
if(b<a) b=a;
}
printf("%ld",b*2-a);
}
tails