結果
問題 | No.1642 Registration |
ユーザー |
|
提出日時 | 2021-08-13 21:22:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 840 bytes |
コンパイル時間 | 1,579 ms |
コンパイル使用メモリ | 165,572 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-03 16:48:21 |
合計ジャッジ時間 | 2,256 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
//code of JUYU ^ ^ never doubt youself !#include <bits/stdc++.h>#define For(i,a,b) for(int i=a;i<=b;i++)#define Rep(i,b,a) for(int i=a;i>=b;--i)#define ms(a,b) memset(a,b,sizeof a)#define fir first#define sec second#define eb emplace_back#define pb push_back#define mk make_pairusing namespace std;typedef long long ll;typedef pair<int,int> PII;const int MOD = 1e9 + 7;const int N = 1e5 + 10;int ans; //exactly you can get the answerint main(){string s; cin >> s; int len = s.size();if (len == 1) cout << 0 << 0 << s << endl;else if (len == 2) cout << 0 << s << endl;else cout << s << endl;return 0;}/* stuff you should look for* int overflow, array bounds* special cases (n=1?)* do smth instead of nothing and stay organized* WRITE STUFF DOWN* DON'T GET STUCK ON ONE APPROACH-- Benq*/