結果
| 問題 | No.1915 Addition |
| コンテスト | |
| ユーザー |
umezo
|
| 提出日時 | 2022-04-29 22:19:33 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 2,015 ms |
| コンパイル使用メモリ | 192,516 KB |
| 最終ジャッジ日時 | 2025-01-28 23:05:33 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 10 |
ソースコード
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;
#include <bits/stdc++.h>
using namespace std;
using namespace chrono;
int main(){
int t;
cin>>t;
while(t--){
ll n;
cin>>n;
int k=0;
ll s=n;
while(s>0){
k++;
s/=10;
}
ll m=1;
rep(i,k) m*=10;
m--;
m-=n;
cout<<m<<endl;
}
return 0;
}
umezo