結果

問題 No.1915 Addition
ユーザー pengin_2000
提出日時 2022-07-02 11:03:29
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 04:02:57
合計ジャッジ時間 1,570 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main()
{
	int t, i;
	long long int N, n, k, j;
	scanf("%d", &t);
	for (i = 0; i < t; i++)
	{
		scanf("%lld", &N);
		n = N + 1;
		for (j = 1; j <= n; j *= 10);
		k = j - n;
		printf("%lld\n", k);
	}
	return 0;
}
0