結果
| 問題 |
No.8004 愛国心
|
| コンテスト | |
| ユーザー |
ajiruajiru
|
| 提出日時 | 2020-02-08 04:11:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 317 bytes |
| コンパイル時間 | 562 ms |
| コンパイル使用メモリ | 66,164 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-25 08:39:36 |
| 合計ジャッジ時間 | 954 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(void) {
string s = "yukicoder";
int n = 1;
string ans = "";
while (n != 0) {
cin >> n;
if (n != 0) {
ans += s[n - 1];
}
}
for (int i = 0; i < ans.size(); ++i) {
cout << ans[i] << endl;
}
if (ans.empty()) cout << endl;
return 0;
}
ajiruajiru