結果
| 問題 |
No.1942 Leading zero
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-20 21:41:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 2,000 ms |
| コード長 | 454 bytes |
| コンパイル時間 | 821 ms |
| コンパイル使用メモリ | 93,248 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-20 07:39:12 |
| 合計ジャッジ時間 | 1,232 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <fstream>
#include <cmath>
#include <stack>
#include <queue>
#include <iomanip>
using namespace std;
int main(){
int n;cin>>n;
for(int i=0;i<n;i++){
string s;cin>>s;
int j=0;
while(s[j]=='0') j++;
if(j==5) {
cout << 0 << endl;
continue;
}
while(j<s.size()) cout << s[j++];
cout << endl;
}
}