結果

問題 No.304 鍵(1)
ユーザー keisuke6keisuke6
提出日時 2022-10-31 22:05:18
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 372 bytes
コンパイル時間 2,001 ms
コンパイル使用メモリ 199,808 KB
実行使用メモリ 24,060 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-24 03:07:46
合計ジャッジ時間 2,931 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
24,060 KB
testcase_01 AC 30 ms
24,000 KB
testcase_02 AC 63 ms
23,604 KB
testcase_03 AC 29 ms
24,060 KB
testcase_04 AC 45 ms
23,376 KB
testcase_05 AC 29 ms
23,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
string f(int n){
    string s = to_string(n);
    reverse(s.begin(),s.end());
    while(s.size() != 3) s += '0';
    reverse(s.begin(),s.end());
    return s;
}
signed main(){
    for(int i=0;i<1000;i++){
        cout<<f(i)<<endl;
        string s;
        cin>>s;
        if(s[0] == 'u') break;
    }
}
0