結果
| 問題 |
No.1108 移調
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-23 15:40:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 890 bytes |
| コンパイル時間 | 1,932 ms |
| コンパイル使用メモリ | 166,440 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 18:40:31 |
| 合計ジャッジ時間 | 2,158 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const long long INF = 1LL<<60;
ll GCD(ll x,ll y){
if(y == 0) return x;
else return GCD(y,x%y);
}
ll LCM(ll a,ll b){
return a / GCD(a,b) * b;
}
const int MOD = 1000000007;
//void warshall_floyd(int n){
// for(int k=0;k<n;k++){
// for(int i=0;i<n;i++){
// for(int j=0;j<n;j++){
// d[i][j]=min(d[i][j],d[i][k]+d[k][j]);
// }
// }
// }
//}
//ll calc_digit(ll N) {
// ll res = 0;
// while (N) {
// ++res;
// N /= 10;
// }
// return res;
//}
//ll sum_digit(ll N) {
// ll res = 0;
// while (N) {
// res += N % 10;
// N /= 10;
// }
// return res;
//}
int main() {
int n,m; cin >> n >> m;
for(int i = 0;i < n;i++){
int x; cin >>x;
cout << x + m << " ";
}
cout << endl;
}