第一週 水題 第一題
題目:https://vjudge.net/problem/CodeForces-118A
程式碼↓
#include"pch.h"
#include
#include
using namespace std;
int main()
{
int l, a;
char word[1000];
char y[] = “aeiou”;
cin >> word;
l = strlen(word);
for (int i = 0; i < l; i++)
{
if (word[i] <= ‘Z’)
word[i] += 32;
}
for (int j = 0; j < l; j++)
{
a = 1;
for (int i = 0; i < 5; i++)
if (word[j] == y[i])
{
a = 0; break;
}
if (a == 1)cout << “.” << word[j];
}
}
相關推薦
第一週 水題 第八題
This problem is also a A + B problem,but it has a little difference,you should determine does (a+b) could be divided with 86.For example ,if (A+B)
第一週 水題 第六題
輸入三個字元後,按各字元的ASCII碼從小到大的順序輸出這三個字元。 Input 輸入資料有多組,每組佔一行,有三個字元組成,之間無空格。 Output 對於每組輸入資料,輸出一行,字元中間用一個空格分開。 Sample Input qwe asd zxc Sample Output e q
第一週 水題 第一題
題目:https://vjudge.net/problem/CodeForces-118A 程式碼↓ #include"pch.h" #include #include using namespace std; int main() { int l, a; char word[1000];
第一週 水題 第三題
#include"pch.h" #include using namespace std; int main() { int n, m = 0; cin >> n; char*stone = new char[n]; cin >> stone; –n; while (
第一週 水題 第二題
#include"pch.h" #include using namespace std; struct room { int pi, qi; }; int main() { room room1[100]; int n, i, sum = 0; cin >> n; for (i
人生第一道水題 計算兩點間距離
#include<stdio.h> #include<math.h> int main() { double x1,y1,x2,y2,s; while(scanf("%lf %lf %lf %lf",&x1,&y1,&x
課程一(Neural Networks and Deep Learning),第一週(Introduction to Deep Learning)—— 2、10個測驗題
1、What does the analogy “AI is the new electricity” refer to? (B) A. Through the “smart grid”, AI is delivering a new wave of electricity.
第一週程式設計題
1 分數(10分) 題目內容: 設計一個表示分數的類Fraction。這個類用兩個int型別的變數分別表示分子和分母。 這個類的建構函式是: Fraction(int a, int b) 構造一個a/b的分數。 這個
人生中第一道水題 計算兩點間距離
#include<stdio.h> #include <math.h> #include <stdlib.h> int main() { double x1,y1,x2,y2,s; while(scanf
使用python刷Leetcode演算法題(第一週)
明年六月份開始找工作,因此從這周開始刷題,希望記錄一下刷題的過程,由於種種原因選擇了python進行刷題,我會在每週的週日記錄下本週在Leetcode中刷過的題,並附上程式碼以及心得,以作備忘。。。。。 Two Sum 第1題 英文描述:Given
Python123第一週作業錯題
2. 下列哪項不是Python的資料型別? A實數 B整數 C字串 D列表 正確答案: A 4. 利用print()格式化輸出,哪個選項用於控制浮點數的小數點後兩位輸出? A{.2} B{:.2} C{.2f} D{:.2f} 正確答案: D
人生第一個快速冪的題(HDU - 1097--A hard puzzle )
快速冪算法 pre namespace using str logs main ref cin 題意: 最簡單的快速冪。給你兩個數n和m,求n^m的最後一位; 解題思路: 額,快速冪就很簡單了,這裏只要最後一位可以一對每次運算都%10; 代碼: #include<c
網絡流24題 第一題 - 洛谷2756 飛行員配對方案 二分圖匹配 匈牙利算法
tps clu log ref con lib urn tar cst 歡迎訪問~原文出處——博客園-zhouzhendong 去博客園看該題解 題目傳送門 題意概括 裸的二分圖匹配 題解 匈牙利算法 上板子 代碼 #include <cstring&g
七中高新 NOIP模擬題 第一題 黃金拼圖題解
alt 答案 void 註意 意思 urn 屬於 namespace cst 開始考試時滿心以為不會像上次SD_le出的模擬題一樣不友好,然而我還是太年輕了…… 基本這道題就定了本次考試基本的基調——暴力大賽。 這套題被大佬們譽為“偏難怪”,中的“偏
《劍指offer》算法題第一天
遇到 margin treedepth n) 做了 深度 tree sap pointer 按照個人計劃,從今天開始做《劍指offer》上面的算法題,練習平臺為牛客網,上面對每道題都有充分的測試實例,感覺還是很不錯的。今天下午做了四道題,分別為: 1. 二叉樹的深度(書55
LeetCode算法題--刷題第一天
ive strong targe 方案 imp string color not ces Given an array of integers, return indices of the two numbers such that they add up to a spe
C高級第一次作業 函數題第二題
需要 循環 作業 pos turn i++ 一個 arch 下標 函數第二題 int search( int list[], int n, int x ) { int i; for(i=0;i<n;i++) if (list[i]==x) return i; retu
C高級地一次作業 函數題第一題
指針 獲得 post 整形 log class 第一題 作業 浮點型 函數題第一題 void splitfloat( float x, int *intpart, float *fracpart ) {int a; float b; a=x/1; b=x-a; *int
C高級地一次作業 編程題第一題
定義 長度 循環 一位 平移 gpo AI for循環 include #include<stdio.h>#define N 100int main(){ int a[N]; int i,j,k,n,m,temp=0; scanf("%d %d
Different Integers 牛客多校第一場只會簽到題
sts memset nbsp tdi num contains 簡單 輸出 struct Given a sequence of integers a1, a2, ..., an and q pairs of integers (l1, r1), (l2, r2), ..