結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,376 KB
testcase_01 AC 1 ms
4,376 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