結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー cielciel
提出日時 2015-07-18 17:58:32
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 342 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 25,556 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-22 19:01:59
合計ジャッジ時間 532 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
char z[999999];
static int input_count=0;

int get(){
	int r=0;
	for(;'0'<=z[input_count]&&z[input_count]<='9';)r=r*10+z[input_count++]-'0';
	input_count++;
	return r;
}
int getC(){
	return z[input_count++];
}
int main(){
	fread(z,1,sizeof(z),stdin);
	printf("%d ",get()+get());
    int c;
	for(;(c=getC())>0;)putchar(c);
}
0