Submission #63177
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | #define _GLIBCXX_DEBUG//実行時、何も出なかったらこれを使う #include<iostream> #include<algorithm> #include<vector> #include<string> #include<cmath> #include<queue> #include<stack> #include<map> #include<numeric> #include<climits> #include<limits>// #include <stdio.h>// using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; template < class A, class B> inline bool chmax(A &a, const B &b) { return b > a && (a = b, true ); } template < class A, class B> inline bool chmin(A &a, const B &b) { return b < a && (a = b, true ); } int dy[] = {1,0}; //次に行くところ int dx[] = {0,1}; //上に同じ int main() { cin.tie(0); ios::sync_with_stdio( false ); //l1,q9,0o,b6 int cnt = 0; string s = "abc" ; vector<string> t; while (s != "Suomi" ){ cin >> s; t.push_back(s); cnt++; } for ( int i = 0; i < cnt; i++){ if (t[i] == "en" ){ cout << "Hello World!\n" ; } else if (t[i] == "fr" ){ cout << "Bonjour ke monde!\n" ; } else if (t[i] == "de" ){ cout << "Hallo Welt!\n" ; } else if (t[i] == "es" ){ cout << "Hola Mundo!\n" ; } else if (t[i] == "pt" ){ cout << "Ola' Mundo!\n" ; } else if (t[i] == "nl" ){ cout << "Hallo Wereld!\n" ; } else if (t[i] == "cs" ){ cout << "Ahoj sve^te!\n" ; } else if (t[i] == "ga" ){ cout << "Dia duit an Domhain!\n" ; } else if (t[i] == "eo" ){ cout << "Saluton Mondo!\n" ; } else if (t[i] == "tr" ){ cout << "Selam Du\"nya!\n" ; } else if (t[i] == "sw" ){ cout << "Salamu, Dunia!\n" ; } else if (t[i] == "af" ){ cout << "Hello We^reld!\n" ; } else if (t[i] == "ms" ){ cout << "Hai dunia!\n" ; } else if (t[i] == "uz" ){ cout << "Salom Dunyo!\n" ; } else if (t[i] == "ja" ){ cout << "nadesiko\n" ; } else if (t[i] == "python" ){ cout << "import __hello__\n" ; } else if (t[i] == "Apple" ){ cout << "Apple is my greatest!\n" ; } } return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0976 - 国際主義 |
ユーザー名 | kumakuma |
投稿日時 | 2020-08-27 21:15:10 |
言語 | C++17 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 2070 Byte |
最大実行時間 | 27 ms |
最大メモリ使用量 | 688 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in1 | AC | 27 ms | 604 KB |
1
|
in2 | AC | 19 ms | 688 KB |
1
|
in3 | AC | 19 ms | 512 KB |
1
|
in4 | AC | 19 ms | 588 KB |
1
|
in5 | AC | 15 ms | 544 KB |
1
|