結果
| 問題 | No.3195 Three-Letter Acronym |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-12-06 01:34:09 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,560 bytes |
| 記録 | |
| コンパイル時間 | 3,322 ms |
| コンパイル使用メモリ | 289,832 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-12-06 01:34:14 |
| 合計ジャッジ時間 | 3,879 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
//Bismillah
#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define f(i, a, n) for (int i = a; i < n; i++)
#define pr(vec) {for(auto &value: vec) cout<<value<<" ";} nl;
#define iv(vec) for(auto &value: vec) cin>>value;
#define pb push_back
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define uset unordered_set
#define mset unordered_multiset
#define vb vector<bool>
#define vi vector<int>
#define vvi vector<vector<int>>
#define vc vector<char>
#define vs vector<string>
#define vpii vector<pair<int,int>>
#define ld long double
#define nl cout<<"\n";
#define ned ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);int tt = 1;
#define yes cout << "YES\n"
#define no cout << "NO\n"
/*
Hazrat_Legacy!
On my way to ---------> ICPC
*/
// Sieve of Eratosthenes
const int N = 1e6 + 5; // limit
vector<int> primes;
vector<bool> isPrime(N, true);
void sieve() {
isPrime[0] = isPrime[1] = false;
for (int i = 2; i * i < N; i++) {
if (isPrime[i]) {
for (int j = i * i; j < N; j += i) {
isPrime[j] = false;
}
}
}
for (int i = 2; i < N; i++) {
if (isPrime[i]) primes.push_back(i);
}
}
void solve(){
string s;
getline(cin,s);
s.insert(s.begin(),' ');
for(int i=0;i<s.size()-1;++i){
if(s[i]==' ' && s[i+1] != ' '){
cout << (char)toupper(s[i+1]);
}
}
}
signed main(){
ned;
// cin>>tt;
// sieve();
while(tt--)
{
solve();
}
return 0;
}
vjudge1