結果
| 問題 |
No.1942 Leading zero
|
| コンテスト | |
| ユーザー |
ぷら
|
| 提出日時 | 2022-05-20 21:22:55 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 2,000 ms |
| コード長 | 391 bytes |
| コンパイル時間 | 1,971 ms |
| コンパイル使用メモリ | 192,992 KB |
| 最終ジャッジ日時 | 2025-01-29 09:58:54 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
while (N--) {
string s;
cin >> s;
int l = 0;
for(int i = 0; i+1 < s.size(); i++) {
if(s[i] == '0') {
l++;
}
else {
break;
}
}
cout << s.substr(l,s.size()-l) << endl;
}
}
ぷら